add popup interaction to md script

This commit is contained in:
Zsolt Ero 2016-02-15 14:18:09 +01:00
parent 99f94a4cc7
commit 06ab697453

View File

@ -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>