Commit 5518e8e8 authored by Juan Gomez's avatar Juan Gomez
Browse files

fix: 🐛 Import leaflet inside Lmap from the module entry

Importing leaflet from the deep import "leaflet/dist/leaflet-src.esm" makes it imposible \n to use vue-leaflet with several community plugins the rely \n on using the default export. This change makes LMap use Leaflet module entry fixing issues with plugins tha hook \n and mutate L object
parent e72397a7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -211,7 +211,7 @@ export default {

    onMounted(async () => {
      const { map, CRS, Icon, latLngBounds, latLng, DomEvent } = await import(
        "leaflet/dist/leaflet-src.esm"
        "leaflet"
      );
      await resetWebpackIcon(Icon);
      options.crs = options.crs || CRS.EPSG3857;