diff --git a/public/index.html b/public/index.html
index 27bb704..ee8ac63 100644
--- a/public/index.html
+++ b/public/index.html
@@ -7,6 +7,14 @@
+
diff --git a/public/scripts/overlays/overlaysNpc.js b/public/scripts/overlays/overlaysNpc.js
index 01954b3..72181ae 100644
--- a/public/scripts/overlays/overlaysNpc.js
+++ b/public/scripts/overlays/overlaysNpc.js
@@ -6,13 +6,18 @@ export default async function getOverlayNpc() {
var markers = L.markerClusterGroup({
chunkedLoading: true,
disableClusteringAtZoom: 8,
+ spiderfyOnMaxZoom: false,
+ showCoverageOnHover: false,
+ zoomToBoundsOnClick: false
});
const layerNpc = L.layerGroup();
const response = await fetch(url);
const data = await response.json();
let npcLoc = [];
data.forEach((npc) => {
- markers.addLayer(L.marker([npc.locy, npc.locx], { icon: customIcons.yellowNpc, id: npc.entityid }).bindPopup(npc.literalValue));
+ markers.addLayer(L.marker([npc.locy, npc.locx], { icon: customIcons.yellowNpc, id: npc.entityid }).bindPopup(npc.literalValue).on('click', function (a) {
+ console.log('marker ' + this.options.id);
+ }));
});
return markers;
} catch (error) {