Clean and update

db.js:
+add all process.env var in db connection.

overlaysNpc.js:
+add id options in marker.
This commit is contained in:
troispoils 2024-05-07 18:12:39 +02:00
parent cab9de1e90
commit 53c106acce
49 changed files with 3 additions and 180784 deletions

View file

@ -12,7 +12,7 @@ export default async function getOverlayNpc() {
const data = await response.json();
let npcLoc = [];
data.forEach((npc) => {
markers.addLayer(L.marker([npc.locy, npc.locx], { icon: customIcons.yellowNpc }).bindPopup(npc.literalValue));
markers.addLayer(L.marker([npc.locy, npc.locx], { icon: customIcons.yellowNpc, id: npc.entityid }).bindPopup(npc.literalValue));
});
return markers;
} catch (error) {