mapbox / mapbox/mapbox-gl-js

symbol-spacing not work as expected

Open
#5,259 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug :lady_beetle:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

For symbols along roads, I set the `symbol-spacing` to `5000`, however the symbols seems still too close to each other as shown below:

![image](https://user-images.githubusercontent.com/16457917/30191921-ad01bc64-9476-11e7-8964-4af7635346ab.png)

Note the `M-32-W` symbol, there are four repeated label in a single tile.

I am not sure if this is a bug?

BTW, the screenshot is taken under windows chrome 60 x64 with mapbox-gl-js 0.39.1

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 reproducing the road-symbol case with symbol-spacing set to 5000 in mapbox-gl-js 0.39.1, using the screenshot and environment details as the reference. Compare the resulting label spacing across the tile and define the expected behavior; done means the symbols are spaced consistently as intended.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.