-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
75 additions
and
50 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import{j as t,G as e}from"./GeoMap.Dd81DkbA.js";import"./index.C0Tw76Oi.js";const a=()=>t.jsx("div",{style:{width:"300px",height:"300px"},children:t.jsx(e,{})});export{a as default}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<!DOCTYPE html><html lang="en"> <head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Examples</title><style>:root{--color-primary: #7ebc6f;--color-secondary: #5b7cba;--color-accent: #f5d76e;--color-background: #f0f0f0;--color-text: #333333;--color-text-light: #666666;--color-road: #ffffff;--color-building: #d9d0c9;--color-code-background: #f4f4f4;--color-code-text: #333333}body{font-family:Open Sans,Arial,sans-serif;background-color:var(--color-background);color:var(--color-text);line-height:1.6}h1,h2,h3,h4,h5,h6{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:700;color:var(--color-primary)}p{font-size:16px;margin-bottom:1rem}a{color:var(--color-secondary);text-decoration:none;transition:color .3s ease}a:hover{color:var(--color-accent)}.container{max-width:1200px;margin:0 auto;padding:0 1rem}pre{background-color:var(--color-code-background);padding:1rem;border-radius:5px;overflow-x:auto;margin-bottom:1rem}code{font-family:Courier New,Courier,monospace;background-color:var(--color-code-background);color:var(--color-code-text);padding:.2em .4em;border-radius:3px;font-size:.9em} | ||
nav[data-astro-cid-lyk2nzxd]{position:fixed;top:0;right:0;padding:1rem;background-color:var(--color-background)} | ||
.data-source-example-map{--data-source-polygon-fill-color: #f00;--data-source-polygon-stroke-color: #000;--data-source-polygon-stroke-width: 2;--data-source-circle-radius: 10;--data-source-circle-fill-color: #f00;--data-source-circle-stroke-color: #000;--data-source-circle-stroke-width: 2}.data-source-example-options{display:flex;flex-direction:column;gap:.5rem;width:300px}.data-source-example-option input[type=color],.data-source-example-option input[type=number]{width:60px}.data-source-example-option{display:flex;flex-direction:row;justify-content:space-between;gap:.5rem} | ||
</style></head> <body> <h1>Examples</h1> <ul> <li> <a href="/react-geojson-map/examples/test-data-source">test-data-source</a> </li><li> <a href="/react-geojson-map/examples/test-map">test-map</a> </li> </ul> </body></html> |
5 changes: 4 additions & 1 deletion
5
test-data-source/index.html → examples/test-data-source/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
<!DOCTYPE html><style>astro-island,astro-slot,astro-static-slot{display:contents}</style><script>(()=>{var e=async t=>{await(await t())()};(self.Astro||(self.Astro={})).load=e;window.dispatchEvent(new Event("astro:load"));})();;(()=>{var A=Object.defineProperty;var g=(i,o,a)=>o in i?A(i,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):i[o]=a;var d=(i,o,a)=>g(i,typeof o!="symbol"?o+"":o,a);{let i={0:t=>m(t),1:t=>a(t),2:t=>new RegExp(t),3:t=>new Date(t),4:t=>new Map(a(t)),5:t=>new Set(a(t)),6:t=>BigInt(t),7:t=>new URL(t),8:t=>new Uint8Array(t),9:t=>new Uint16Array(t),10:t=>new Uint32Array(t)},o=t=>{let[l,e]=t;return l in i?i[l](e):void 0},a=t=>t.map(o),m=t=>typeof t!="object"||t===null?t:Object.fromEntries(Object.entries(t).map(([l,e])=>[l,o(e)]));class y extends HTMLElement{constructor(){super(...arguments);d(this,"Component");d(this,"hydrator");d(this,"hydrate",async()=>{var b;if(!this.hydrator||!this.isConnected)return;let e=(b=this.parentElement)==null?void 0:b.closest("astro-island[ssr]");if(e){e.addEventListener("astro:hydrate",this.hydrate,{once:!0});return}let c=this.querySelectorAll("astro-slot"),n={},h=this.querySelectorAll("template[data-astro-template]");for(let r of h){let s=r.closest(this.tagName);s!=null&&s.isSameNode(this)&&(n[r.getAttribute("data-astro-template")||"default"]=r.innerHTML,r.remove())}for(let r of c){let s=r.closest(this.tagName);s!=null&&s.isSameNode(this)&&(n[r.getAttribute("name")||"default"]=r.innerHTML)}let p;try{p=this.hasAttribute("props")?m(JSON.parse(this.getAttribute("props"))):{}}catch(r){let s=this.getAttribute("component-url")||"<unknown>",v=this.getAttribute("component-export");throw v&&(s+=` (export ${v})`),console.error(`[hydrate] Error parsing props for component ${s}`,this.getAttribute("props"),r),r}let u;await this.hydrator(this)(this.Component,p,n,{client:this.getAttribute("client")}),this.removeAttribute("ssr"),this.dispatchEvent(new CustomEvent("astro:hydrate"))});d(this,"unmount",()=>{this.isConnected||this.dispatchEvent(new CustomEvent("astro:unmount"))})}disconnectedCallback(){document.removeEventListener("astro:after-swap",this.unmount),document.addEventListener("astro:after-swap",this.unmount,{once:!0})}connectedCallback(){if(!this.hasAttribute("await-children")||document.readyState==="interactive"||document.readyState==="complete")this.childrenConnectedCallback();else{let e=()=>{document.removeEventListener("DOMContentLoaded",e),c.disconnect(),this.childrenConnectedCallback()},c=new MutationObserver(()=>{var n;((n=this.lastChild)==null?void 0:n.nodeType)===Node.COMMENT_NODE&&this.lastChild.nodeValue==="astro:end"&&(this.lastChild.remove(),e())});c.observe(this,{childList:!0}),document.addEventListener("DOMContentLoaded",e)}}async childrenConnectedCallback(){let e=this.getAttribute("before-hydration-url");e&&await import(e),this.start()}async start(){let e=JSON.parse(this.getAttribute("opts")),c=this.getAttribute("client");if(Astro[c]===void 0){window.addEventListener(`astro:${c}`,()=>this.start(),{once:!0});return}try{await Astro[c](async()=>{let n=this.getAttribute("renderer-url"),[h,{default:p}]=await Promise.all([import(this.getAttribute("component-url")),n?import(n):()=>()=>{}]),u=this.getAttribute("component-export")||"default";if(!u.includes("."))this.Component=h[u];else{this.Component=h;for(let f of u.split("."))this.Component=this.Component[f]}return this.hydrator=p,this.hydrate},e,this)}catch(n){console.error(`[astro-island] Error hydrating ${this.getAttribute("component-url")}`,n)}}attributeChangedCallback(){this.hydrate()}}d(y,"observedAttributes",["props"]),customElements.get("astro-island")||customElements.define("astro-island",y)}})();</script><astro-island uid="1aUT5W" prefix="r0" component-url="/react-geojson-map/_astro/DataSourceExample.CHlY77K-.js" component-export="default" renderer-url="/react-geojson-map/_astro/client.BH12DeU3.js" props="{}" ssr="" client="load" opts="{"name":"DataSourceExample","value":true}" await-children=""><div style="width:300px;height:300px"><div id=":r0R0:" class="react-geojson-map" style="width:100%;height:100%"></div></div><!--astro:end--></astro-island> | ||
<!DOCTYPE html><html lang="en" data-astro-cid-lyk2nzxd> <head><meta charset="UTF-8"><meta name="viewport" content="width=device-width"><meta name="generator" content="Astro v4.15.10"><title>Data Source Example</title><style>:root{--color-primary: #7ebc6f;--color-secondary: #5b7cba;--color-accent: #f5d76e;--color-background: #f0f0f0;--color-text: #333333;--color-text-light: #666666;--color-road: #ffffff;--color-building: #d9d0c9;--color-code-background: #f4f4f4;--color-code-text: #333333}body{font-family:Open Sans,Arial,sans-serif;background-color:var(--color-background);color:var(--color-text);line-height:1.6}h1,h2,h3,h4,h5,h6{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:700;color:var(--color-primary)}p{font-size:16px;margin-bottom:1rem}a{color:var(--color-secondary);text-decoration:none;transition:color .3s ease}a:hover{color:var(--color-accent)}.container{max-width:1200px;margin:0 auto;padding:0 1rem}pre{background-color:var(--color-code-background);padding:1rem;border-radius:5px;overflow-x:auto;margin-bottom:1rem}code{font-family:Courier New,Courier,monospace;background-color:var(--color-code-background);color:var(--color-code-text);padding:.2em .4em;border-radius:3px;font-size:.9em} | ||
nav[data-astro-cid-lyk2nzxd]{position:fixed;top:0;right:0;padding:1rem;background-color:var(--color-background)} | ||
.data-source-example-map{--data-source-polygon-fill-color: #f00;--data-source-polygon-stroke-color: #000;--data-source-polygon-stroke-width: 2;--data-source-circle-radius: 10;--data-source-circle-fill-color: #f00;--data-source-circle-stroke-color: #000;--data-source-circle-stroke-width: 2}.data-source-example-options{display:flex;flex-direction:column;gap:.5rem;width:300px}.data-source-example-option input[type=color],.data-source-example-option input[type=number]{width:60px}.data-source-example-option{display:flex;flex-direction:row;justify-content:space-between;gap:.5rem} | ||
</style></head> <body data-astro-cid-lyk2nzxd> <main data-astro-cid-lyk2nzxd> <style>astro-island,astro-slot,astro-static-slot{display:contents}</style><script>(()=>{var e=async t=>{await(await t())()};(self.Astro||(self.Astro={})).only=e;window.dispatchEvent(new Event("astro:only"));})();;(()=>{var A=Object.defineProperty;var g=(i,o,a)=>o in i?A(i,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):i[o]=a;var d=(i,o,a)=>g(i,typeof o!="symbol"?o+"":o,a);{let i={0:t=>m(t),1:t=>a(t),2:t=>new RegExp(t),3:t=>new Date(t),4:t=>new Map(a(t)),5:t=>new Set(a(t)),6:t=>BigInt(t),7:t=>new URL(t),8:t=>new Uint8Array(t),9:t=>new Uint16Array(t),10:t=>new Uint32Array(t)},o=t=>{let[l,e]=t;return l in i?i[l](e):void 0},a=t=>t.map(o),m=t=>typeof t!="object"||t===null?t:Object.fromEntries(Object.entries(t).map(([l,e])=>[l,o(e)]));class y extends HTMLElement{constructor(){super(...arguments);d(this,"Component");d(this,"hydrator");d(this,"hydrate",async()=>{var b;if(!this.hydrator||!this.isConnected)return;let e=(b=this.parentElement)==null?void 0:b.closest("astro-island[ssr]");if(e){e.addEventListener("astro:hydrate",this.hydrate,{once:!0});return}let c=this.querySelectorAll("astro-slot"),n={},h=this.querySelectorAll("template[data-astro-template]");for(let r of h){let s=r.closest(this.tagName);s!=null&&s.isSameNode(this)&&(n[r.getAttribute("data-astro-template")||"default"]=r.innerHTML,r.remove())}for(let r of c){let s=r.closest(this.tagName);s!=null&&s.isSameNode(this)&&(n[r.getAttribute("name")||"default"]=r.innerHTML)}let p;try{p=this.hasAttribute("props")?m(JSON.parse(this.getAttribute("props"))):{}}catch(r){let s=this.getAttribute("component-url")||"<unknown>",v=this.getAttribute("component-export");throw v&&(s+=` (export ${v})`),console.error(`[hydrate] Error parsing props for component ${s}`,this.getAttribute("props"),r),r}let u;await this.hydrator(this)(this.Component,p,n,{client:this.getAttribute("client")}),this.removeAttribute("ssr"),this.dispatchEvent(new CustomEvent("astro:hydrate"))});d(this,"unmount",()=>{this.isConnected||this.dispatchEvent(new CustomEvent("astro:unmount"))})}disconnectedCallback(){document.removeEventListener("astro:after-swap",this.unmount),document.addEventListener("astro:after-swap",this.unmount,{once:!0})}connectedCallback(){if(!this.hasAttribute("await-children")||document.readyState==="interactive"||document.readyState==="complete")this.childrenConnectedCallback();else{let e=()=>{document.removeEventListener("DOMContentLoaded",e),c.disconnect(),this.childrenConnectedCallback()},c=new MutationObserver(()=>{var n;((n=this.lastChild)==null?void 0:n.nodeType)===Node.COMMENT_NODE&&this.lastChild.nodeValue==="astro:end"&&(this.lastChild.remove(),e())});c.observe(this,{childList:!0}),document.addEventListener("DOMContentLoaded",e)}}async childrenConnectedCallback(){let e=this.getAttribute("before-hydration-url");e&&await import(e),this.start()}async start(){let e=JSON.parse(this.getAttribute("opts")),c=this.getAttribute("client");if(Astro[c]===void 0){window.addEventListener(`astro:${c}`,()=>this.start(),{once:!0});return}try{await Astro[c](async()=>{let n=this.getAttribute("renderer-url"),[h,{default:p}]=await Promise.all([import(this.getAttribute("component-url")),n?import(n):()=>()=>{}]),u=this.getAttribute("component-export")||"default";if(!u.includes("."))this.Component=h[u];else{this.Component=h;for(let f of u.split("."))this.Component=this.Component[f]}return this.hydrator=p,this.hydrate},e,this)}catch(n){console.error(`[astro-island] Error hydrating ${this.getAttribute("component-url")}`,n)}}attributeChangedCallback(){this.hydrate()}}d(y,"observedAttributes",["props"]),customElements.get("astro-island")||customElements.define("astro-island",y)}})();</script><astro-island uid="1CGgkh" component-url="/react-geojson-map/_astro/DataSourceExample.Ci-K8pon.js" component-export="default" renderer-url="/react-geojson-map/_astro/client.BH12DeU3.js" props="{}" ssr="" client="only" opts="{"name":"DataSourceExample","value":"react"}"></astro-island> </main> <nav data-astro-cid-lyk2nzxd> <a href="/examples" data-astro-cid-lyk2nzxd>Back to examples</a> </nav> </body> </html> |
Oops, something went wrong.