Commit 178b4e9e authored by Juan Gomez's avatar Juan Gomez
Browse files

fix: 🐛 Allow to pass a beforeMapMount option to Lmap

parent 5518e8e8
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -210,9 +210,10 @@ export default {
    };

    onMounted(async () => {
      const { map, CRS, Icon, latLngBounds, latLng, DomEvent } = await import(
        "leaflet"
      );
      window.L = window.L || (await import("leaflet"));
      const { map, CRS, Icon, latLngBounds, latLng, DomEvent } = window.L;
      options.beforeMapMount && (await options.beforeMapMount());

      await resetWebpackIcon(Icon);
      options.crs = options.crs || CRS.EPSG3857;