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