makinacorpus / Leaflet.TextPath

Show text along Polyline with Leaflet
https://makinacorpus.github.io/Leaflet.TextPath/
MIT License
285 stars 112 forks source link

css text-shadow #92

Open tmap99 opened 2 years ago

tmap99 commented 2 years ago

I tried to add text-shadow to the styling, but it's not available. Is it possible to add text-shadow to the avalaible css styling options? That would be very helpful to make text overlays more readable. Or is there another option to add an outline to the text?

akilakumarasamy commented 2 years ago

use it under style and it works I have used it like this under attributes like, attributes: { "font-size": "16", style: "text-shadow: 1px 1px 3px #fff;" } this works for me

tmap99 commented 2 years ago

thank you, it works for me too :)