@mapcreator/sdk 0.0.8 → 0.0.10

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.
Binary file
@@ -32887,7 +32887,7 @@ function dr(e) {
32887
32887
  }
32888
32888
  async function fr(e, t, n) {
32889
32889
  for (let r of e) try {
32890
- let e = await fetch(`${t}fonts/${r}.woff2?access_token=${n}`).then((e) => e.arrayBuffer());
32890
+ let e = await fetch(`${t}/fonts/${r}.woff2?access_token=${n}`).then((e) => e.arrayBuffer());
32891
32891
  document.fonts.add(new FontFace(r, e));
32892
32892
  } catch {}
32893
32893
  }
@@ -37834,7 +37834,7 @@ function Oc(e, t, n) {
37834
37834
  globeGeoJsonRequested: !1,
37835
37835
  globeGeoJson: void 0
37836
37836
  };
37837
- return fetch(`${n}data/insetmaps/${e.fileName}`).then((e) => e.json()).then((e) => {
37837
+ return fetch(`${n}/data/insetmaps/${e.fileName}`).then((e) => e.json()).then((e) => {
37838
37838
  o.geoJson = Ri(e, Object.keys(e.objects)[0]), kc(o);
37839
37839
  }), t.on("moveend", () => {
37840
37840
  o.moveEndPosition = t.getCenter(), (o.isGlobe || o.globeFallbackActive) && kc(o);
@@ -37847,7 +37847,7 @@ function Oc(e, t, n) {
37847
37847
  [i, r],
37848
37848
  [e, r]
37849
37849
  ]])])), l = ki(s), u = (c ? ki(c) : 0) < l * .75;
37850
- o.globeFallbackActive !== u && (o.globeFallbackActive = u, o.moveEndPosition = t.getCenter(), kc(o)), o.globeFallbackActive && !o.globeGeoJsonRequested && (o.globeGeoJsonRequested = !0, fetch(`${n}data/insetmaps/world-110m.json`).then((e) => e.json()).then((e) => {
37850
+ o.globeFallbackActive !== u && (o.globeFallbackActive = u, o.moveEndPosition = t.getCenter(), kc(o)), o.globeFallbackActive && !o.globeGeoJsonRequested && (o.globeGeoJsonRequested = !0, fetch(`${n}/data/insetmaps/world-110m.json`).then((e) => e.json()).then((e) => {
37851
37851
  o.globeGeoJson = Ri(e, Object.keys(e.objects)[0]), o.moveEndPosition = t.getCenter(), kc(o);
37852
37852
  }));
37853
37853
  }
@@ -38629,7 +38629,7 @@ function il(e, t, n, r) {
38629
38629
  //#endregion
38630
38630
  //#region src/utils/overlays.ts
38631
38631
  async function al(e, t, n, r, i) {
38632
- let a = e.map((e) => `${n}styles/${e}.json?access_token=${r}`).map((e) => fetch(e).then((e) => e.json())), o = await Promise.all(a);
38632
+ let a = e.map((e) => `${n}/styles/${e}.json?access_token=${r}`).map((e) => fetch(e).then((e) => e.json())), o = await Promise.all(a);
38633
38633
  await Promise.all(o.map((e) => ol(e, t, r, i)));
38634
38634
  }
38635
38635
  async function ol(e, t, n, r) {