mapbox / mapbox/mapbox-gl-js

Fill pattern behaviour

Open
#12,494 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs information :pray:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

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!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing fill-pattern behavior in mapbox-gl-js and how sprite images are applied across zoom levels. Determine whether a non-repeating image that covers each polygon is supported; done means documenting a supported approach or producing a clearly scoped feature proposal.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.