How to show labels for geojson points in a Leaflet map?
There is Leaflet.label that is now deprecated in favour of L.Tooltip, but that only shows text on hover. I want to show the text labels directly on the map without needing user interaction.
Sample input - https://gist.github.com/maphew/e168430e999fc738eeb3448feda121cd
Desired result (green points with text labels, the other graphic elements are just for context):
Update: I want to create text that blends in with the map like the image below, not a popup tooltip.
No comments:
Post a Comment