Fix invalid coords assignment

This commit is contained in:
Nicolò P 2024-11-15 10:49:00 +01:00
parent c83dff30dc
commit 3bf88b98d9
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -9,3 +9,4 @@ vendor/
docs/ docs/
progetto_QGIS/ progetto_QGIS/
conf.json conf.json
shapefile

View File

@ -117,7 +117,7 @@ GIS.initMap = async function (mapId, zoomLevel = this.INIT_ZOOM) {
for (let id in MARKER_NAMES.sites) { for (let id in MARKER_NAMES.sites) {
let layer = sitesGroup.customGetLayer(id); let layer = sitesGroup.customGetLayer(id);
const coords = layer.getBounds().getCenter(); let coords = layer.getBounds().getCenter();
const fromStorage = localStorage.getItem(id); const fromStorage = localStorage.getItem(id);
let data = {}; let data = {};