@mapsindoors/map-template 1.99.11 → 1.99.12

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.
@@ -16781,7 +16781,7 @@ function SM({ mapType: e, mapsIndoorsInstance: t, mapInstance: n, onPositionCont
16781
16781
  const FS = E4(SM), jt = {
16782
16782
  Google: "google",
16783
16783
  Mapbox: "mapbox"
16784
- }, YS = L4(() => import("./MapboxMap-Cf6DrzJi.mjs")), HS = L4(() => import("./GoogleMapsMap-DXT0U_zb.mjs"));
16784
+ }, YS = L4(() => import("./MapboxMap-DiQX3HEC.mjs")), HS = L4(() => import("./GoogleMapsMap-CbGVRql3.mjs"));
16785
16785
  jM.propTypes = {
16786
16786
  apiKey: q.string.isRequired,
16787
16787
  mapType: q.string.isRequired,
@@ -19006,11 +19006,13 @@ function WM({ onLocationClick: e, onMapPositionKnown: t, useMapProviderModule: n
19006
19006
  x.on("floor_changed", U);
19007
19007
  const $ = x.getMap();
19008
19008
  let Y;
19009
- if ($) {
19010
- if (S === jt.Mapbox && typeof $.on == "function")
19011
- $.on("idle", L), Y = () => $.off?.("idle", L);
19009
+ if (L(), $) {
19010
+ if (S === jt.Mapbox && typeof $.once == "function")
19011
+ $.once("idle", L), Y = () => $.off?.("idle", L);
19012
19012
  else if (S === jt.Google && typeof $.addListener == "function") {
19013
- const F = $.addListener("idle", L);
19013
+ const F = $.addListener("idle", () => {
19014
+ F.remove(), L();
19015
+ });
19014
19016
  Y = () => F.remove();
19015
19017
  }
19016
19018
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mapsindoors/map-template",
3
3
  "description": "Get a MapsIndoors map up and running in less than 10 mins.",
4
- "version": "1.99.11",
4
+ "version": "1.99.12",
5
5
  "private": false,
6
6
  "files": [
7
7
  "dist/**"