Skip to content

Commit 3301a68

Browse files
committed
fix: leaflet error in production
Apparently leaflet is trying to call addLayer on a undefined variable. I don't get any error on debug.html only the index.html file.
1 parent aaa159a commit 3301a68

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dist/first-bundle.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/src/map.1.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ function createMarker(animated, draggable, objectRef, title) {
8989

9090
var image = L.icon(markerType);
9191

92-
var where = Map;
92+
var where = window.Map;
9393
if(objectRef.data && objectRef.data.isPlayer){
9494
// Add to the cluster layer
95-
where = PlayerMarkers;
95+
where = window.PlayerMarkers;
9696
}
9797

9898
var marker = L.marker(coord, {

0 commit comments

Comments
 (0)