Debugging popover
This commit is contained in:
parent
d9097cd5a0
commit
d0d01bef23
|
@ -47,13 +47,15 @@
|
||||||
for(point in data){
|
for(point in data){
|
||||||
L.geoJSON(
|
L.geoJSON(
|
||||||
data[point]
|
data[point]
|
||||||
).bindPopup(function(layer){
|
).addTo(markers)
|
||||||
return data[point].properties.popup
|
|
||||||
}).bindTooltip(function(layer){
|
|
||||||
return data[point].properties.tooltip
|
|
||||||
}).addTo(markers)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
markers.bindPopup(function(element){
|
||||||
|
return element.feature.properties.popup
|
||||||
|
}).bindTooltip(function(element){
|
||||||
|
return element.feature.properties.tooltip
|
||||||
|
})
|
||||||
|
|
||||||
markers.addTo(mymap)
|
markers.addTo(mymap)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue