Skip to content

Commit

Permalink
Merge pull request #44 from andrewgryan/regression/import
Browse files Browse the repository at this point in the history
Revert markercluster import to esmodule import statement
  • Loading branch information
andrewgryan authored Sep 23, 2024
2 parents 8b8fb1b + 3f4b7e8 commit 03ce0cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/l-marker-cluster-group.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// @ts-check

// Make L.markerClusterGroup optional
import("leaflet.markercluster").catch((error) => {
console.warn("Failed to import leaflet.markercluster", error)
});

// import("leaflet.markercluster").catch((error) => {
// console.warn("Failed to import leaflet.markercluster", error)
// });
import "leaflet.markercluster";
import { layerConnected } from "./events.js";
import LLayer from "./l-layer.js";

Expand Down

0 comments on commit 03ce0cf

Please sign in to comment.