mapbox-gl-js icon indicating copy to clipboard operation
mapbox-gl-js copied to clipboard

Fill pattern behaviour

Open zned45 opened this issue 2 years ago • 1 comments

Hello Team,

I am building a map where there are thousands of small polygons, each with a background picture. Tried fill-pattern but this keeps repeating images over different zoom levels.

Just wondering if it is possible to create a new pattern from a sprite image that does not repeat but instead covers the polygon in question?

If not, any suggestion on how to accomplish this?

Thank you!

zned45 avatar Dec 29 '22 01:12 zned45

Can you show a screenshot of what you're trying to accomplish? Not sure I understand how exactly an image would "cover" a polygon. Perhaps simply add an icon layer with icons of different size comparable to the polygon in question?

mourner avatar Jan 09 '23 16:01 mourner