mapbox / mapbox/mapbox-gl-js

Symbols placed on line behavior instable: offset and reverse

Open
#8,852 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

mapbox-gl-js version: Latest in mapbox studio

browser: Chrome 77 stable

Steps to Trigger Behavior
  1. Add a symbol layer to the map
  2. Assign a long CJK value to text-field
  3. Zoom
Link to Demonstration

https://api.mapbox.com/styles/v1/vincent-ting/cjscmomgt0gzb1fmmv45932c5.html?fresh=true&title=true&access_token=pk.eyJ1IjoidmluY2VudC10aW5nIiwiYSI6ImNqamR4MTkwNjE1ZnMza29sc3pvMnN4MnMifQ.PeG06gM4KveNmXNPsbzDlQ#16.2/35.510772/-98.551794/0

There is 2 line, a long one and a short one below.

symbol offset
symbol reverse

And i think symbols missing is not what i want:

symbol missed while zooming

https://api.mapbox.com/styles/v1/vincent-ting/cjyzjp4vv2rev1cpkzxgg9jvy.html?fresh=true&title=true&access_token=pk.eyJ1IjoidmluY2VudC10aW5nIiwiYSI6ImNqamR4MTkwNjE1ZnMza29sc3pvMnN4MnMifQ.PeG06gM4KveNmXNPsbzDlQ#12.1/35.268782/115.048482/0

Just for discussion, cause i didn't test much case.

Expected Behavior
Actual Behavior

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

Reproduce the behavior using the linked demonstrations with a symbol layer, a long CJK text-field value, and zooming in Chrome. Compare the reported offset, reversal, and missing-symbol behavior for the long and short lines. Done means the symbol placement remains stable during zoom and symbols are not unexpectedly missing.

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
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.