Leaflet Popup with additional information from GeoJSON
I want to bind the additional information from geojson to a leaflet marker popup. I looked up a few things from the leaflet documentation but it doesn't work. const map = L.map('map').setView([51.9, 7.6], 11); L.tileLayer('http://{s}.tile.cloudmade.com/5e4495ff4b0d454eb0443225198b7e6c/997/256/{z}/{x}/{y}.png', { maxZoom: 16 }).addTo(map); const polygon = { "type": "Feature", "properties": { "name":"City BoundingBox", "style": { "color": "#004070", "weight": 4, "opacity": 1 } }, "geometry": { "type": "Polygon", "coordinates": [[ [7.5,52.05], [7.7,51.92], [7.6,51.84], [7.4,51.94], [7.5,52.05] ]]
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.