@mapsindoors/map-template 1.99.27 → 1.99.30

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.
@@ -17744,7 +17744,7 @@ const ZJ = yo(class extends mo {
17744
17744
  }
17745
17745
  applyBasemapConfig() {
17746
17746
  var t, n, r, c;
17747
- if (!((t = this.mapboxInstance) === null || t === void 0) && t.setConfigProperty && (!((c = (r = (n = this.mapboxInstance).getStyle) === null || r === void 0 ? void 0 : r.call(n)) === null || c === void 0) && c.imports)) try {
17747
+ if (!((t = this.mapboxInstance) === null || t === void 0) && t.setConfigProperty && (typeof this.mapboxInstance.isStyleLoaded != "function" || this.mapboxInstance.isStyleLoaded()) && (!((c = (r = (n = this.mapboxInstance).getStyle) === null || r === void 0 ? void 0 : r.call(n)) === null || c === void 0) && c.imports)) try {
17748
17748
  this.mapboxInstance.setConfigProperty("basemap", "showPointOfInterestLabels", this.showMapMarkers), this.mapboxInstance.setConfigProperty("basemap", "showTransitLabels", this.showMapMarkers), this.mapboxInstance.setConfigProperty("basemap", "showPlaceLabels", this.showMapMarkers), this.setBuildingsOpacityConfigProperty(Number(this.buildingsOpacity), this.mapboxInstance), this.syncExtrudedBuildingsVisibility();
17749
17749
  } catch {
17750
17750
  }
@@ -17772,7 +17772,7 @@ const ZJ = yo(class extends mo {
17772
17772
  t === null ? (this.mapboxInstance.removeControl(this.myPositionControl), this.myPositionControl = null) : this.myPositionControl ? (this.mapboxInstance.removeControl(this.myPositionControl), this.mapboxInstance.addControl(this.myPositionControl, this.myPositionControlPosition)) : (this.myPositionControl = new YJ(this.mapboxInstance, this.mapsIndoorsInstance), this.mapboxInstance.addControl(this.myPositionControl, this.myPositionControlPosition));
17773
17773
  }
17774
17774
  render() {
17775
- return Mt(ml, { key: "a2a42a3d7b4352ae6c2a2309fc58938287d60631" }, Mt("link", { key: "e96f1889e852b0039ca6a92e07b637c3b744087f", href: "https://api.mapbox.com/mapbox-gl-js/v3.31.0/mapbox-gl.css", rel: "stylesheet" }), Mt("div", { key: "c595013b694693972dfee282ce185581ca9bc27b", ref: (t) => this.mapElement = t }));
17775
+ return Mt(ml, { key: "9fe58b3a15bf98eaf11aafa5d974f299b70b8376" }, Mt("link", { key: "517d7a8651ed1c9265938e201dc6b2ee8490ed41", href: "https://api.mapbox.com/mapbox-gl-js/v3.31.0/mapbox-gl.css", rel: "stylesheet" }), Mt("div", { key: "1b16375ca8276929a2c71fad254815edc9e69b9e", ref: (t) => this.mapElement = t }));
17776
17776
  }
17777
17777
  static get watchers() {
17778
17778
  return { miApiKey: [{ apiKeyChange: 0 }], disableExternalLinks: [{ setExternalLinkBehavior: 0 }], showMapMarkers: [{ showMapMarkersChange: 0 }], buildingsOpacity: [{ buildingsOpacityChange: 0 }], floorSelectorControlPosition: [{ floorSelectorControlPositionChange: 0 }], floorIndex: [{ floorIndexChange: 0 }], myPositionControlPosition: [{ myPositionControlPositionChange: 0 }], polylineOptions: [{ polylineOptionsChange: 0 }], zoom: [{ zoomChange: 0 }], maxPitch: [{ maxPitchChange: 0 }], maxZoom: [{ maxZoomChange: 0 }], bearing: [{ bearingChange: 0 }], pitch: [{ pitchChange: 0 }] };
@@ -25859,7 +25859,10 @@ function Ej({ onLocationClick: t, onMapPositionKnown: n, useMapProviderModule: r
25859
25859
  se.off("floor_changed", Ve), tt?.();
25860
25860
  };
25861
25861
  }, [Te, oe, se, ct, Re, Ct, we]), me.useEffect(() => {
25862
- se && (isNaN(parseInt(Se)) || se.getMapView().tilt(parseInt(Se)), isNaN(parseInt(Be)) || se.getMapView().rotate(parseInt(Be)));
25862
+ if (se) {
25863
+ const ke = parseFloat(Se), Ve = parseFloat(Be);
25864
+ isNaN(ke) || se.getMapView().tilt(ke), isNaN(Ve) || se.getMapView().rotate(Ve);
25865
+ }
25863
25866
  }, [Be, Se, se]);
25864
25867
  const ve = (ke) => {
25865
25868
  Ne(ke);
@@ -37442,7 +37445,7 @@ function AF({ apiKey: t, gmApiKey: n, mapboxAccessToken: r, venue: c, locationId
37442
37445
  if (window.mapsindoors !== void 0)
37443
37446
  return wi();
37444
37447
  const uo = document.createElement("script");
37445
- uo.setAttribute("type", "text/javascript"), uo.setAttribute("src", "https://app.mapsindoors.com/mapsindoors/js/sdk/4.61.1/mapsindoors-4.61.1.js.gz"), uo.setAttribute("integrity", "sha384-4Xr5Rk87NS8Tr2A/ml67/1TYTmmnlyIrJE3BoaDLoWO+IdorygZszNgdqqZzxhCw"), uo.setAttribute("crossorigin", "anonymous"), document.body.appendChild(uo), uo.onload = () => {
37448
+ uo.setAttribute("type", "text/javascript"), uo.setAttribute("src", "https://app.mapsindoors.com/mapsindoors/js/sdk/4.61.2/mapsindoors-4.61.2.js.gz"), uo.setAttribute("integrity", "sha384-WXRj1E5nMG0Y0Azz5I56IOjCMqaywEI2EM6Q9uEZs4W1iPoo0xEZCayFt2y9dLcK"), uo.setAttribute("crossorigin", "anonymous"), document.body.appendChild(uo), uo.onload = () => {
37446
37449
  wi();
37447
37450
  };
37448
37451
  });
@@ -37935,7 +37938,7 @@ function uue(t, n = {}) {
37935
37938
  return sue(t, n, { mount: aue, update: lue, unmount: cue });
37936
37939
  }
37937
37940
  function hue() {
37938
- return "1.99.26";
37941
+ return "1.99.29";
37939
37942
  }
37940
37943
  const due = uue(NF, {
37941
37944
  props: {