add popup interaction to md script
This commit is contained in:
parent
99f94a4cc7
commit
06ab697453
@ -82,6 +82,10 @@ var positronLabels = L.tileLayer('http://{s}.basemaps.cartocdn.com/light_only_la
|
||||
|
||||
geojson = L.geoJson(euCountries).addTo(map);
|
||||
|
||||
geojson.eachLayer(function (layer) {
|
||||
layer.bindPopup(layer.feature.properties.name);
|
||||
});
|
||||
|
||||
map.setView({ lat: 47.040182144806664, lng: 9.667968750000002 }, 4);
|
||||
</script>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user