From 15e7c8f0f7537021c51280ad97183e2a3cd96a0a Mon Sep 17 00:00:00 2001 From: ZsoltMONOLITE <141682166+ZsoltMONOLITE@users.noreply.github.com> Date: Sun, 3 Dec 2023 23:57:22 +0000 Subject: [PATCH] Update main.js --- main.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main.js b/main.js index 4a4bf675..1ddde424 100644 --- a/main.js +++ b/main.js @@ -89,7 +89,7 @@ function addGeoms(data) { style: geomStyle, }).addTo(map); -function addPoints(data) { + function addPoints(data) { data = data.data; let pointGroupLayer = L.layerGroup().addTo(map); // Choose marker type. Options are: @@ -147,8 +147,6 @@ function addPoints(data) { marker.setIcon(icon); } } -} -} function parseGeom(gj) { // FeatureCollection