@versatiles/map-editor 4.0.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/dist/THIRD_PARTY_LICENSES.txt +205 -0
- package/dist/_app/immutable/chunks/{nsn6-zdH.js → cIvd-dgs.js} +1 -1
- package/dist/_app/immutable/entry/{app.DtAj8JKm.js → app.ByOhm3JJ.js} +2 -2
- package/dist/_app/immutable/nodes/{2.B3OUzcrd.js → 2.Bf8MtYLK.js} +1 -1
- package/dist/_app/immutable/nodes/{4.Dmkqn01Q.js → 4.aD61RshA.js} +1 -1
- package/dist/_app/version.json +1 -1
- package/dist/index.html +8 -8
- package/dist/view/index.html +8 -8
- package/package.json +1 -1
- package/dist/schema/mapjson-1.schema.json +0 -821
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.DDz1Dk-W.js","../chunks/DK3Fl9T5.js","../chunks/C1qWpZZK.js","../nodes/1.DCMJt1lg.js","../chunks/BFhkrCgt.js","./payload.DSmR2FwN.js","../chunks/Dams4V9V.js","../nodes/2.
|
|
2
|
-
import{t as e}from"../chunks/CRzLMJPS.js";var t={},n=[()=>e(()=>import(`../nodes/0.DDz1Dk-W.js`),__vite__mapDeps([0,1,2]),import.meta.url),()=>e(()=>import(`../nodes/1.DCMJt1lg.js`),__vite__mapDeps([3,2,4,5,6]),import.meta.url),()=>e(()=>import(`../nodes/2.
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.DDz1Dk-W.js","../chunks/DK3Fl9T5.js","../chunks/C1qWpZZK.js","../nodes/1.DCMJt1lg.js","../chunks/BFhkrCgt.js","./payload.DSmR2FwN.js","../chunks/Dams4V9V.js","../nodes/2.Bf8MtYLK.js","../chunks/CRzLMJPS.js","../chunks/DU0zVETU.js","../chunks/cIvd-dgs.js","../assets/MapViewer.BtMysvtR.css","../chunks/CDI9yWJf.js","../assets/2.vrWZYRVE.css","../nodes/3.ttq6Z4rF.js","../assets/3.BLA0AxgC.css","../nodes/4.aD61RshA.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{t as e}from"../chunks/CRzLMJPS.js";var t={},n=[()=>e(()=>import(`../nodes/0.DDz1Dk-W.js`),__vite__mapDeps([0,1,2]),import.meta.url),()=>e(()=>import(`../nodes/1.DCMJt1lg.js`),__vite__mapDeps([3,2,4,5,6]),import.meta.url),()=>e(()=>import(`../nodes/2.Bf8MtYLK.js`),__vite__mapDeps([7,8,2,9,10,1,6,5,11,12,4,13]),import.meta.url),()=>e(()=>import(`../nodes/3.ttq6Z4rF.js`),__vite__mapDeps([14,2,9,15]),import.meta.url),()=>e(()=>import(`../nodes/4.aD61RshA.js`),__vite__mapDeps([16,2,9,10,1,8,6,5,11]),import.meta.url)],r=[],i={"/":[2],"/iframe-test":[3],"/view":[4]},a={handleError:(({kind:e,error:t})=>{e===`unknown`&&console.error(t)}),reroute:(()=>{}),transport:{}},o=Object.fromEntries(Object.entries(a.transport).map(([e,t])=>[e,t.decode])),s=Object.fromEntries(Object.entries(a.transport).map(([e,t])=>[e,t.encode])),c=!1,l=(e,t)=>o[e](t),u=()=>e(()=>import(`../chunks/Bjy-W4x2.js`).then(e=>e.default),[],import.meta.url);export{l as decode,o as decoders,i as dictionary,s as encoders,u as get_error_template,c as hash,a as hooks,t as matchers,n as nodes,r as server_loads};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as e}from"../chunks/CRzLMJPS.js";import{$ as t,A as n,B as r,C as i,D as a,E as o,F as s,G as c,H as l,I as u,J as d,K as f,L as p,M as m,N as h,P as g,Q as _,R as v,S as y,T as b,V as x,W as S,X as C,Y as w,Z as T,_ as E,_t as D,at as O,d as k,et as A,g as j,gt as M,h as N,ht as ee,i as P,it as te,lt as F,mt as I,nt as L,ot as R,p as ne,pt as z,q as B,rt as V,t as H,tt as re,ut as U,v as ie,w as W,x as G,y as K,z as q}from"../chunks/C1qWpZZK.js";import{$ as ae,B as oe,D as se,E as ce,F as J,G as le,H as ue,I as de,J as fe,K as pe,M as me,O as he,P as ge,Q as _e,R as ve,S as ye,T as be,U as xe,V as Se,Y as Ce,Z as we,_ as Te,a as Ee,b as De,c as Oe,d as ke,et as Ae,f as je,i as Me,it as Ne,j as Pe,k as Fe,n as Ie,nt as Le,o as Re,p as ze,q as Be,r as Ve,rt as He,s as Ue,t as We,tt as Ge,u as Ke,v as qe,w as Je,x as Ye,y as Xe,z as Ze}from"../chunks/DU0zVETU.js";import{$ as Qe,A as $e,B as et,C as tt,D as Y,E as nt,F as rt,G as it,H as at,I as ot,J as st,K as ct,L as lt,M as ut,N as dt,O as ft,P as pt,Q as mt,R as ht,S as gt,T as X,U as _t,V as vt,W as yt,X as bt,Y as xt,Z as St,_ as Ct,_t as wt,a as Tt,at as Et,b as Dt,bt as Ot,c as kt,ct as At,d as jt,dt as Mt,et as Nt,f as Pt,ft as Ft,g as It,gt as Lt,h as Rt,ht as zt,i as Bt,it as Vt,j as Ht,k as Ut,l as Wt,lt as Gt,m as Kt,mt as qt,n as Jt,nt as Yt,o as Xt,ot as Zt,p as Qt,pt as $t,q as en,r as tn,rt as nn,s as rn,st as an,t as on,tt as sn,u as cn,ut as ln,v as Z,vt as un,w as dn,x as fn,xt as pn,y as mn,yt as hn,z as gn}from"../chunks/
|
|
1
|
+
import{t as e}from"../chunks/CRzLMJPS.js";import{$ as t,A as n,B as r,C as i,D as a,E as o,F as s,G as c,H as l,I as u,J as d,K as f,L as p,M as m,N as h,P as g,Q as _,R as v,S as y,T as b,V as x,W as S,X as C,Y as w,Z as T,_ as E,_t as D,at as O,d as k,et as A,g as j,gt as M,h as N,ht as ee,i as P,it as te,lt as F,mt as I,nt as L,ot as R,p as ne,pt as z,q as B,rt as V,t as H,tt as re,ut as U,v as ie,w as W,x as G,y as K,z as q}from"../chunks/C1qWpZZK.js";import{$ as ae,B as oe,D as se,E as ce,F as J,G as le,H as ue,I as de,J as fe,K as pe,M as me,O as he,P as ge,Q as _e,R as ve,S as ye,T as be,U as xe,V as Se,Y as Ce,Z as we,_ as Te,a as Ee,b as De,c as Oe,d as ke,et as Ae,f as je,i as Me,it as Ne,j as Pe,k as Fe,n as Ie,nt as Le,o as Re,p as ze,q as Be,r as Ve,rt as He,s as Ue,t as We,tt as Ge,u as Ke,v as qe,w as Je,x as Ye,y as Xe,z as Ze}from"../chunks/DU0zVETU.js";import{$ as Qe,A as $e,B as et,C as tt,D as Y,E as nt,F as rt,G as it,H as at,I as ot,J as st,K as ct,L as lt,M as ut,N as dt,O as ft,P as pt,Q as mt,R as ht,S as gt,T as X,U as _t,V as vt,W as yt,X as bt,Y as xt,Z as St,_ as Ct,_t as wt,a as Tt,at as Et,b as Dt,bt as Ot,c as kt,ct as At,d as jt,dt as Mt,et as Nt,f as Pt,ft as Ft,g as It,gt as Lt,h as Rt,ht as zt,i as Bt,it as Vt,j as Ht,k as Ut,l as Wt,lt as Gt,m as Kt,mt as qt,n as Jt,nt as Yt,o as Xt,ot as Zt,p as Qt,pt as $t,q as en,r as tn,rt as nn,s as rn,st as an,t as on,tt as sn,u as cn,ut as ln,v as Z,vt as un,w as dn,x as fn,xt as pn,y as mn,yt as hn,z as gn}from"../chunks/cIvd-dgs.js";import{t as _n}from"../chunks/CDI9yWJf.js";function vn(e){return me(e?.smooth)?{smooth:!0}:{}}function yn(e){let t={};for(let[n,r]of Object.entries(e??{}))r!==void 0&&(t[n]=r);return t}function bn(e){return{type:`Feature`,properties:yn({...pe(e.style),"symbol-label":e.label,description:e.popup?.text}),geometry:{type:`Point`,coordinates:e.point}}}function xn(e){return{type:`Feature`,properties:yn({...be(e.style),smooth:e.smooth||void 0,description:e.popup?.text}),geometry:{type:`LineString`,coordinates:e.points}}}function Sn(e){return{type:`Feature`,properties:yn({...Ye(e.style),...se(e.outlineStyle),smooth:e.smooth||void 0,description:e.popup?.text}),geometry:{type:`Polygon`,coordinates:[[...e.points,e.points[0]]]}}}function Cn(e){return{type:`Feature`,properties:yn({...Ye(e.style),...se(e.outlineStyle),subType:`Circle`,radius:e.radius,description:e.popup?.text}),geometry:{type:`Point`,coordinates:e.point}}}function wn(e){let t={type:`FeatureCollection`,features:e.elements.map(e=>{switch(e.type){case`marker`:return bn(e);case`line`:return xn(e);case`polygon`:return Sn(e);case`circle`:return Cn(e)}})},n=J(e.frame);n&&(t.frame=n);let r={},i=Pe(e.meta?.background);i&&(r.background=i),e.meta?.legend&&(r.legend=e.meta.legend),e.meta?.colorScheme&&(r.colorScheme=e.meta.colorScheme);let a=le(e.meta?.viewer);a&&(r.viewer=a);let o=de(e.meta?.labels);return o&&(r.labels=o),e.meta?.title&&(r.title=e.meta.title),Object.keys(r).length>0&&(t.meta=r),t}function*Tn(e){for(let t of e){let e=t?.geometry;if(e!=null)switch(e.type){case`MultiPoint`:for(let n of e.coordinates)yield{...t,geometry:{type:`Point`,coordinates:n}};break;case`MultiLineString`:for(let n of e.coordinates)yield{...t,geometry:{type:`LineString`,coordinates:n}};break;case`MultiPolygon`:for(let n of e.coordinates)yield{...t,geometry:{type:`Polygon`,coordinates:n}};break;case`GeometryCollection`:yield*Tn(e.geometries.map(e=>({...t,geometry:e})));break;default:yield t}}}function En(e){let t=Dn(e);if(!t)return;let n=Fe(e.properties);n&&(t.popup=n);for(let e of Object.keys(t))t[e]===void 0&&delete t[e];return t}function Dn(e){let t=e.properties??{},n=e.geometry;switch(n.type){case`Point`:{let e=oe(n.coordinates);if(!e)return;if(t.subType===`Circle`){let n=Ze(t.radius);return n===void 0||n<=0?void 0:{type:`circle`,point:e,radius:n,style:ye(t),outlineStyle:he(t)}}return{type:`marker`,point:e,...Je(xe(t?.[`symbol-label`])),style:Be(t)}}case`LineString`:{let e=Se(n.coordinates);return!e||e.length<2?void 0:{type:`line`,points:e,style:ce(t),...vn(t)}}case`Polygon`:{let e=Se(n.coordinates?.[0]);if(!e)return;let r=e[0],i=e[e.length-1];return e.length>1&&r[0]===i[0]&&r[1]===i[1]&&e.pop(),e.length<3?void 0:{type:`polygon`,points:e,style:ye(t),outlineStyle:he(t),...vn(t)}}default:return}}function On(e){switch(e?.type){case`FeatureCollection`:return Array.isArray(e.features)?e.features:[];case`Feature`:return[e];case`Point`:case`MultiPoint`:case`LineString`:case`MultiLineString`:case`Polygon`:case`MultiPolygon`:case`GeometryCollection`:return[{type:`Feature`,properties:{},geometry:e}];default:throw Error(`Not a GeoJSON object`)}}function kn(e){let t=[];for(let n of Tn(On(e))){let e=En(n);e&&t.push(e)}let n={elements:t};if(e.type===`FeatureCollection`&&`frame`in e){let t=J(e.frame);t&&(n.frame=t)}if(e.type===`FeatureCollection`&&`meta`in e){let t=ve(e.meta);t&&(n.meta=t)}return n}var An=[`strings`,`stringRefs`,`coordinates`,`styles`,`colors`,`frame`,`background`,`structure`],jn={readStringTable:`strings`,readStringRef:`stringRefs`,readElementPoint:`coordinates`,readElementPoints:`coordinates`,readStyle:`styles`,readElementStyles:`styles`,readPalette:`colors`,readFrame:`frame`,readBackground:`background`};function Mn(e){let t=Me.fromBase64(e),n=t.bits.length,r=Object.fromEntries(An.map(e=>[e,0])),i=`structure`,a=0,o=()=>{r[i]+=t.offset-a,a=t.offset},s=t;for(let[e,t]of Object.entries(jn)){let n=s[e];s[e]=function(...e){o();let r=i;i=t;try{return n.apply(this,e)}finally{o(),i=r}}}return t.readRoot(),o(),r.structure+=n-t.offset,{characters:e.length,bits:n,kinds:r}}var Nn=`https://versatiles.org/versatiles-map-editor/schema/mapjson-1.schema.json`,Pn=class extends Error{version;constructor(e){super(`The map is of version ${e} of the format; this version reads up to 1.`),this.version=e,this.name=`MapJSONVersionError`}};function Fn(e){let{frame:t,meta:n,elements:r}=ue(e);return{$schema:Nn,version:1,...t?{frame:t}:{},...n?{meta:n}:{},elements:r}}function In(e){if(typeof e!=`object`||!e||Array.isArray(e))throw Error(`The file contains no map`);let{version:t=1,frame:n,meta:r,elements:i}=e;if(typeof t!=`number`||!Number.isInteger(t)||t<1)throw Error(`The file has no valid version`);if(t>1)throw new Pn(t);if(!Array.isArray(i))throw Error(`The file contains no map elements`);return ue({elements:i,frame:n,meta:r})}var Ln={MapJSON:[`$schema`,`version`,`frame`,`meta`,`elements`],StateFrame:[`bounds`,`bearing`,`pitch`],StateMetadata:[`background`,`legend`,`colorScheme`,`viewer`,`labels`,`title`],StateLabels:[`overlap`,`minZoom`],StateBackground:[`base`,`theme`,`streets`,`borders`,`labels`,`language`,`font`,`labelSize`,`haloWidth`,`labelsOnTop`,`colors`,`hillshade`,`terrain`,`buildings`,`options`],StateBackgroundColors:[`saturation`,`black`,`white`],StateLegend:[`layout`,`font`,`bold`,`italic`,`theme`,`entries`],StateLegendMarker:[`type`,`style`,`label`],StateLegendLine:[`type`,`style`,`label`],StateLegendArea:[`type`,`style`,`outlineStyle`,`label`],StateViewer:[`search`,`navigation`,`zoomButtons`,`legend`,`scale`,`reset`,`fullscreen`,`locate`,`canPan`,`canZoom`,`canRotate`,`canTilt`,`confine`,`minZoom`,`maxZoom`,`scrollZoom`],StatePopup:[`text`],MarkerStyle:fe.marker,LineStyle:fe.line,AreaStyle:fe.area,OutlineStyle:fe.outline,StateElementMarker:[`type`,`point`,`label`,`style`,`popup`],StateElementLine:[`type`,`points`,`smooth`,`style`,`popup`],StateElementPolygon:[`type`,`points`,`smooth`,`style`,`outlineStyle`,`popup`],StateElementCircle:[`type`,`point`,`radius`,`style`,`outlineStyle`,`popup`]},Rn={marker:Ln.StateElementMarker,line:Ln.StateElementLine,polygon:Ln.StateElementPolygon,circle:Ln.StateElementCircle},zn={marker:Ln.StateLegendMarker,line:Ln.StateLegendLine,area:Ln.StateLegendArea},Bn=e=>typeof e==`object`&&!!e&&!Array.isArray(e);function Vn(e){let t=[],n=(e,n,r)=>{if(Bn(e)){for(let i of Object.keys(e))n.includes(i)||t.push(r?`${r}.${i}`:i);return e}},r=(e,t)=>{let r=e.type===`marker`?`marker`:e.type===`line`?`line`:`area`;n(e.style,fe[r],`${t}.style`),r===`area`&&n(e.outlineStyle,fe.outline,`${t}.outlineStyle`)},i=n(e,Ln.MapJSON,``);if(!i)return t;n(i.frame,Ln.StateFrame,`frame`);let a=n(i.meta,Ln.StateMetadata,`meta`);if(a){let e=n(a.background,Ln.StateBackground,`meta.background`);e&&n(e.colors,Ln.StateBackgroundColors,`meta.background.colors`),n(a.viewer,Ln.StateViewer,`meta.viewer`),n(a.labels,Ln.StateLabels,`meta.labels`);let i=n(a.legend,Ln.StateLegend,`meta.legend`);i&&Array.isArray(i.entries)&&i.entries.forEach((e,i)=>{let a=`meta.legend.entries[${i}]`,o=Bn(e)?zn[e.type]:void 0;if(!o)return void t.push(a);let s=n(e,o,a);s&&r(s,a)})}return Array.isArray(i.elements)&&i.elements.forEach((e,i)=>{let a=`elements[${i}]`,o=Bn(e)?Rn[e.type]:void 0;if(!o)return void t.push(a);let s=n(e,o,a);r(s,a),n(s.popup,Ln.StatePopup,`${a}.popup`)}),t}var Hn={meta:{title:``,colorScheme:``},frame:{bearing:0,pitch:0},"meta.viewer":De,"meta.legend":ze,"meta.labels":{overlap:`show`,minZoom:0},"meta.background":{...ke,labelsOnTop:!1},"meta.background.colors":Ke,element:{smooth:!1,label:``}},Un=[`arrowSize`,`patternScale`,`patternCoverage`];function Wn(e){if(!Bn(e)||!Array.isArray(e.elements))return[];let t=[],n=(e,t)=>e.replace(/\r\n?/g,`
|
|
2
2
|
`).toLowerCase()===t.toLowerCase(),r=(e,t)=>{if(e===t)return!0;if(typeof e!=`string`||typeof t!=`string`)return!1;if(n(e,t))return!0;let[r,i]=[Ne(e),Ne(t)];return e.startsWith(`#`)&&!!r&&!!i&&He(r)===He(i)},i=(e,t,n,i)=>{if(e.startsWith(`style:`)){let i=Xe[e.slice(6)];return Un.includes(t)&&typeof n==`number`?!0:t in i&&r(n,i[t])}return e===`popup`?t===`text`&&typeof n==`string`&&n.trim()===``:e===`meta.background`&&t===`haloWidth`?n===je[i.base===`satellite`?`satellite`:`vector`]:t in(Hn[e]??{})&&Hn[e][t]===n},a=(e,n,o,s)=>{if(!Bn(e))return void t.push(o);let c=Bn(n)?n:{};for(let[n,l]of Object.entries(e)){let u=o?`${o}.${n}`:n,d=c[n];if(l!==void 0){if(u===`meta.background.options`)Bn(l)||t.push(u);else if(Bn(l)){let t=e.type===`marker`?`marker`:e.type===`line`?`line`:`area`,r=n===`style`?`style:${t}`:n===`outlineStyle`?`style:outline`:n===`popup`?n:u;a(l,d,u,r)}else Array.isArray(l)?(d===void 0&&![`entries`,`elements`].includes(n)&&t.push(u),(n===`point`?[l]:n===`points`?l:[]).some(e=>Array.isArray(e)&&(e.length>2||Math.abs(Number(e[1]))>90||Math.abs(Number(e[0]))>Ge.longitude))&&t.push(u)):d===void 0?i(s,n,l,e)||t.push(u):r(l,d)||t.push(u)}}},o=ue({elements:[],frame:e.frame,meta:e.meta}),{$schema:s,version:c,elements:l,...u}=e;a(u,o,``,``);let d=Bn(e.meta)&&Bn(e.meta.legend)?e.meta.legend.entries:void 0;if(Array.isArray(d)){let e=[...o.meta?.legend?.entries??[]];d.forEach((n,r)=>{let i=`meta.legend.entries[${r}]`;Bn(n)&&Ae.includes(n.type)?a(n,e.shift(),i,`entry`):t.push(i)})}l.forEach((e,n)=>{let r=`elements[${n}]`,i=ge(e);i?a(e,i,r,`element`):t.push(r)});let f=Vn(e);return t.filter(e=>!f.some(t=>e===t||e.startsWith(`${t}.`)))}var Gn={lt:`<`,gt:`>`,amp:`&`,quot:`"`,apos:`'`};function Kn(e){return e.replace(/&(#x[0-9a-f]+|#\d+|\w+);/gi,(e,t)=>{if(t[0]===`#`){let n=t[1].toLowerCase()===`x`?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Number.isInteger(n)&&n>=0&&n<=1114111?String.fromCodePoint(n):e}return Gn[t]??e})}function qn(e){return e.slice(e.indexOf(`:`)+1)}function Jn(e){let t={name:`#document`,attributes:{},children:[]},n=[t],r=0;for(;r<e.length;){let t=n[n.length-1];if(e[r]!==`<`){let n=e.indexOf(`<`,r),i=e.slice(r,n<0?e.length:n);i.trim()&&t.children.push(Kn(i)),r=n<0?e.length:n}else if(e.startsWith(`<!--`,r))r=Yn(e,`-->`,r);else if(e.startsWith(`<![CDATA[`,r)){let n=e.indexOf(`]]>`,r);if(n<0)throw Error(`Unclosed CDATA section`);t.children.push(e.slice(r+9,n)),r=n+3}else if(e.startsWith(`<?`,r))r=Yn(e,`?>`,r);else if(e.startsWith(`<!`,r))r=Yn(e,`>`,r);else if(e[r+1]===`/`){let i=Yn(e,`>`,r),a=qn(e.slice(r+2,i-1).trim());if(t.name!==a)throw Error(`Unexpected closing tag </${a}>`);n.pop(),r=i}else{let i=/^<([\w:.-]+)((?:\s+[\w:.-]+\s*=\s*(?:"[^"]*"|'[^']*'))*)\s*(\/?)>/.exec(e.slice(r));if(!i)throw Error(`Invalid tag at position ${r}`);let a={name:qn(i[1]),attributes:{},children:[]};for(let[,e,,t,n]of i[2].matchAll(/([\w:.-]+)\s*=\s*("([^"]*)"|'([^']*)')/g))a.attributes[qn(e)]=Kn(t??n);t.children.push(a),i[3]||n.push(a),r+=i[0].length}}if(n.length>1)throw Error(`Unclosed tag <${n[n.length-1].name}>`);return t}function Yn(e,t,n){let r=e.indexOf(t,n);if(r<0)throw Error(`Missing "${t}"`);return r+t.length}function Xn(e,t){return(e?.children??[]).filter(e=>typeof e!=`string`&&e.name===t)}function Q(e,t){return Xn(e,t)[0]}function*Zn(e){let t=[...e.children].reverse();for(;t.length>0;){let e=t.pop();if(yield e,typeof e!=`string`)for(let n=e.children.length-1;n>=0;n--)t.push(e.children[n])}}function Qn(e){if(!e)return;let t=``;for(let n of Zn(e))typeof n==`string`&&(t+=n);return t}function $n(e,t){let n=[];for(let r of Zn(e))typeof r!=`string`&&r.name===t&&n.push(r);return n}function er(e){return e.replace(/[<>&"']/g,e=>`&${{"<":`lt`,">":`gt`,"&":`amp`,'"':`quot`,"'":`apos`}[e]};`)}function $(e,t,n={}){let r=Object.entries(n).map(([e,t])=>` ${e}="${er(t)}"`).join(``);return t===void 0?`<${e}${r}/>`:`<${e}${r}>${Array.isArray(t)?t.filter(e=>e!==void 0).join(``):er(t)}</${e}>`}var tr=`versatiles:frame`,nr=`versatiles:meta`,rr=`center`,ir=[`symbol-pattern`,`stroke-style`,`fill-pattern`],ar=500;function or([e,t,n,r]){let i=[(e+n)/2,(t+r)/2],a=111320,o=(n-e)*a*Math.cos(i[1]*Math.PI/180),s=(r-t)*a;return{center:i,radius:Math.max(o/2,s/2,ar)}}function sr(e){let t=wn(e),n={};t.frame&&(n[tr]=JSON.stringify(t.frame)),t.meta&&(n[nr]=JSON.stringify(t.meta));let r=t.frame?.bounds??Le(e.elements),i=r&&or(r);return`<?xml version="1.0" encoding="UTF-8"?>
|
|
3
3
|
`+$(`kml`,[`
|
|
4
4
|
`,$(`Document`,[$(`name`,e.meta?.title||`Map`),i&&$(`LookAt`,[$(`longitude`,String(i.center[0])),$(`latitude`,String(i.center[1])),$(`range`,String(Math.round(i.radius*2.5)))]),pr(n),...t.features.map(cr)].filter(Boolean).map(e=>e+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{K as e,M as t,P as n,Q as r,Y as i,Z as a,d as o,mt as s,pt as c,q as l,y as u}from"../chunks/C1qWpZZK.js";import"../chunks/DU0zVETU.js";import{t as d,xt as f}from"../chunks/
|
|
1
|
+
import{K as e,M as t,P as n,Q as r,Y as i,Z as a,d as o,mt as s,pt as c,q as l,y as u}from"../chunks/C1qWpZZK.js";import"../chunks/DU0zVETU.js";import{t as d,xt as f}from"../chunks/cIvd-dgs.js";var p=n(`<meta name="generator"/> <meta name="description" content="A map made with the VersaTiles Map Editor."/>`,1),m=n(`<div class="wrapper"><!></div>`);function h(n){var h=m();u(`108px9u`,n=>{var a=p(),s=r(a);c(2),l(()=>o(s,`content`,f)),e(()=>{i.title=`VersaTiles Map`}),t(n,a)});var g=a(h);d(g,{onMapLoad:e=>{Object.assign(window,{map:e,mapReady:!0})}}),s(h),t(n,h)}export{h as component};
|
package/dist/_app/version.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"1791558559197"}
|
package/dist/index.html
CHANGED
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
<link href="./_app/immutable/chunks/C1qWpZZK.js" rel="modulepreload">
|
|
22
22
|
<link href="./_app/immutable/chunks/Dams4V9V.js" rel="modulepreload">
|
|
23
23
|
<link href="./_app/immutable/chunks/BFhkrCgt.js" rel="modulepreload">
|
|
24
|
-
<link href="./_app/immutable/entry/app.
|
|
24
|
+
<link href="./_app/immutable/entry/app.ByOhm3JJ.js" rel="modulepreload">
|
|
25
25
|
<link href="./_app/immutable/nodes/0.DDz1Dk-W.js" rel="modulepreload">
|
|
26
26
|
<link href="./_app/immutable/chunks/DK3Fl9T5.js" rel="modulepreload">
|
|
27
|
-
<link href="./_app/immutable/nodes/2.
|
|
27
|
+
<link href="./_app/immutable/nodes/2.Bf8MtYLK.js" rel="modulepreload">
|
|
28
28
|
<link href="./_app/immutable/chunks/DU0zVETU.js" rel="modulepreload">
|
|
29
|
-
<link href="./_app/immutable/chunks/
|
|
30
|
-
<!--1uha8ag--><meta name="generator" content="VersaTiles Map Editor 4.0.
|
|
29
|
+
<link href="./_app/immutable/chunks/cIvd-dgs.js" rel="modulepreload">
|
|
30
|
+
<!--1uha8ag--><meta name="generator" content="VersaTiles Map Editor 4.0.1"/> <meta name="description" content="Draw markers, lines and areas on a map, style them and share the result as a link or embed it in a website."/><!----><title>VersaTiles Map Editor</title>
|
|
31
31
|
<link href="./_app/immutable/assets/MapViewer.BtMysvtR.css" rel="stylesheet">
|
|
32
32
|
<link href="./_app/immutable/assets/2.vrWZYRVE.css" rel="stylesheet">
|
|
33
33
|
<style>
|
|
@@ -45,16 +45,16 @@
|
|
|
45
45
|
|
|
46
46
|
<script>
|
|
47
47
|
{
|
|
48
|
-
|
|
48
|
+
__sveltekit_1ers2d = {
|
|
49
49
|
base: new URL(".", location).pathname.slice(0, -1),
|
|
50
|
-
version: "
|
|
50
|
+
version: "1791558559197"
|
|
51
51
|
};
|
|
52
52
|
|
|
53
53
|
const element = document.currentScript.parentElement;
|
|
54
54
|
|
|
55
55
|
import("./_app/immutable/entry/start.BlK6_2SP.js").then(async (kit) => {
|
|
56
|
-
kit.init(
|
|
57
|
-
const app = await import("./_app/immutable/entry/app.
|
|
56
|
+
kit.init(__sveltekit_1ers2d);
|
|
57
|
+
const app = await import("./_app/immutable/entry/app.ByOhm3JJ.js");
|
|
58
58
|
kit.start(app, element, {
|
|
59
59
|
node_ids: [0, 2],
|
|
60
60
|
data: [null,null],
|
package/dist/view/index.html
CHANGED
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
<link href="../_app/immutable/chunks/C1qWpZZK.js" rel="modulepreload">
|
|
22
22
|
<link href="../_app/immutable/chunks/Dams4V9V.js" rel="modulepreload">
|
|
23
23
|
<link href="../_app/immutable/chunks/BFhkrCgt.js" rel="modulepreload">
|
|
24
|
-
<link href="../_app/immutable/entry/app.
|
|
24
|
+
<link href="../_app/immutable/entry/app.ByOhm3JJ.js" rel="modulepreload">
|
|
25
25
|
<link href="../_app/immutable/nodes/0.DDz1Dk-W.js" rel="modulepreload">
|
|
26
26
|
<link href="../_app/immutable/chunks/DK3Fl9T5.js" rel="modulepreload">
|
|
27
|
-
<link href="../_app/immutable/nodes/4.
|
|
27
|
+
<link href="../_app/immutable/nodes/4.aD61RshA.js" rel="modulepreload">
|
|
28
28
|
<link href="../_app/immutable/chunks/DU0zVETU.js" rel="modulepreload">
|
|
29
|
-
<link href="../_app/immutable/chunks/
|
|
30
|
-
<!--108px9u--><meta name="generator" content="VersaTiles Map Editor 4.0.
|
|
29
|
+
<link href="../_app/immutable/chunks/cIvd-dgs.js" rel="modulepreload">
|
|
30
|
+
<!--108px9u--><meta name="generator" content="VersaTiles Map Editor 4.0.1"/> <meta name="description" content="A map made with the VersaTiles Map Editor."/><!----><title>VersaTiles Map</title>
|
|
31
31
|
<link href="../_app/immutable/assets/MapViewer.BtMysvtR.css" rel="stylesheet">
|
|
32
32
|
<style>
|
|
33
33
|
.wrapper {
|
|
@@ -44,16 +44,16 @@
|
|
|
44
44
|
|
|
45
45
|
<script>
|
|
46
46
|
{
|
|
47
|
-
|
|
47
|
+
__sveltekit_1ers2d = {
|
|
48
48
|
base: new URL("..", location).pathname.slice(0, -1),
|
|
49
|
-
version: "
|
|
49
|
+
version: "1791558559197"
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
const element = document.currentScript.parentElement;
|
|
53
53
|
|
|
54
54
|
import("../_app/immutable/entry/start.BlK6_2SP.js").then(async (kit) => {
|
|
55
|
-
kit.init(
|
|
56
|
-
const app = await import("../_app/immutable/entry/app.
|
|
55
|
+
kit.init(__sveltekit_1ers2d);
|
|
56
|
+
const app = await import("../_app/immutable/entry/app.ByOhm3JJ.js");
|
|
57
57
|
kit.start(app, element, {
|
|
58
58
|
node_ids: [0, 4],
|
|
59
59
|
data: [null,null],
|