Stupid little errors
parent
7003b7ab99
commit
04ba084a5a
|
@ -83,7 +83,7 @@ function UpdateMap(e) {
|
||||||
$.get("/active_stations", function(data, status){
|
$.get("/active_stations", function(data, status){
|
||||||
data = JSON.parse(data)
|
data = JSON.parse(data)
|
||||||
Object.keys(data).forEach(function(x){
|
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("<b>Name: "+x[2]+"</b>")
|
marker.bindPopup("<b>Name: "+x[2]+"</b>")
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue