So I have a geojson layer in leaflet, and I can add geojson objects to this layer for display on the resulting map.
Now I\'d like to add a text label to display near the
I was looking for the same question recently and just implemented it yesterday based on a posting in the google group. https://groups.google.com/forum/#!topic/leaflet-js/sA2HnU5W9Fw
Thanks to Adrian for the original code sample.
Here's the solution:
Extend the following class as below:
Furthermore add this css:
And then display the text labels as below:
Result: