maplibre-gl-js
maplibre-gl-js copied to clipboard
Symbols/cirlces box-shadows?
Hello! I am wandering will be there ability to make shadows icons/text/circles/etc? I can make circle shadow by draw 2 circles where one of them with blur and opacity, but it is kinda suck. And I can't make it work with symbol icon (sdf). I am try this with halo-blur and halo-opacity, but it just do not work out.
P.S. Sorry for bad English :sweat_smile:
The icon-halo-* properties should be applicable here, but looks like they don't work as expected. With a circular SDF icon, the halo is either always a single pixel border, or fills the entire bounds of the icon.
icon-halo-width: 5
icon-halo-width: 6
When we want to add shadows to icons, we bake them directly into the images. This also lets us have offset drop shadows, where the halo remains centered around the icon.
Yes, I meant exactly that problem with sdf. And I can,t bake shadow to image because sdf restricted to only one color at a time
Yeah, it only works for full color images. Having a set of icon-shadow properties on the style layer would be a nice feature.
And about icon-halo
/circle-stroke
. It is not good solution, because I am currently want shadow and halo/stroke.