diff --git a/templates/map.html b/templates/map.html index df0e588..47e403b 100644 --- a/templates/map.html +++ b/templates/map.html @@ -83,7 +83,7 @@ function UpdateMap(e) { $.get("/active_stations", function(data, status){ data = JSON.parse(data) Object.keys(data).forEach(function(x){ - marker = L.marker([1],{icon: station,zIndexOffset:-1000}).addTo(mymap); + marker = L.marker(x[1],{icon: station,zIndexOffset:-1000}).addTo(mymap); marker.bindPopup("Name: "+x[2]+"") });