is there anyway so i could export the text label using leaflet-image plugin.
I've tried many plugins other than leaflet-label bus it doesn't seems to work
thanks
is there anyway so i could export the text label using leaflet-image plugin.
I've tried many plugins other than leaflet-label bus it doesn't seems to work
thanks
Is there any way to export text labels using the
leaflet-image
plugin?
No.
As stated on its documentation:
This library does not rasterize HTML because browsers cannot rasterize HTML. Therefore, L.divIcon and other HTML-based features of a map, like zoom controls or legends, are not included in the output, because they are HTML.
While the statement about "browsers not being able to rasterize HTML" is not entirely true, the leaflet-image
plugin does not implement (as of now) any method to rasterize HTML elements containing text. And text labels in Leaflet (unless stated otherwise) are HTML elements.
(On a side note, please be aware that asking a question with a "yes" or "no" answer might get you literally "yes" or "no" for an answer, and if this is not the answer you wanted, you should reformulate your question.)