Explicitly call Default Icon for Leaflet Marker
This commit is contained in:
@@ -22,7 +22,7 @@
|
|||||||
maxZoom: 19,
|
maxZoom: 19,
|
||||||
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>'
|
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>'
|
||||||
}).addTo(map);
|
}).addTo(map);
|
||||||
const marker = L.marker([x, y]).addTo(map);
|
const marker = L.marker([x, y], { icon: new L.Icon.Default }).addTo(map);
|
||||||
if (children !== undefined)
|
if (children !== undefined)
|
||||||
marker.bindPopup(popupDiv, { closeOnClick: false }).openPopup();
|
marker.bindPopup(popupDiv, { closeOnClick: false }).openPopup();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user