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:
parent
cab9de1e90
commit
53c106acce
49 changed files with 3 additions and 180784 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue