Hello,
Couple of things that might help:
- You can access the properties object on each feature in your geoJson with something like feature.properties (I added a console.log from the above example):
- Adjust your html in layer.bindPopup, you can add third party UI libraries here too
- If you'd like the popup to appear on events such as click, dblclick, mouseover etc, you can replace the bindpopup function and render an L.popup inside the event handler function. Something like - layer.on(<event>, handler function),
Best Regards,
Edwin
Edwin Corrigan