Skip to content

Commit d0dad87

Browse files
committed
add marker popup to map
1 parent 0148a76 commit d0dad87

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

docs/community/index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ title: Community
4242
const layer = L.geoJSON(data, {
4343
pointToLayer: (feature, latlng) => {
4444
return L.marker(latlng);
45+
},
46+
onEachFeature: (feature, layer) => {
47+
layer.bindPopup(
48+
feature.properties.url
49+
);
4550
}
4651
}).addTo(map);
4752

0 commit comments

Comments
 (0)