mapbox / mapbox/mapbox-gl-js

The view is wrong when use map.setLayoutProperty() to set "symbol-placement = 'line'"

Open
#3,171 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

**mapbox-gl-js version**:0.23.0
### Steps to Trigger Behavior

1、Add a new layer to the map, such as "road", and set the layer type to "symbol".
2、Change the "symbol-placement" to "line"
Error occurred both in Mapbox Studio and my own project. Actually when I use `map.setLayoutProperty()` setting `symbol-placement` property to `line`, the error occurred.And this is the test page:http://jsbin.com/buqiseq/1/edit?html,output
### Expected Behavior

The text labeled along the road.
### Actual Behavior

This is the Mapbox Studio:
![image](https://cloud.githubusercontent.com/assets/12003895/18432685/f3a1f7b0-7915-11e6-90ae-0f3ddaa16576.png)

This is my test project:
![image](https://cloud.githubusercontent.com/assets/12003895/18432699/0f235830-7916-11e6-8213-b5a4cc56af07.png)

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 issue in the linked JSBin using mapbox-gl-js 0.23.0: add a symbol layer, then call map.setLayoutProperty() to change symbol-placement to line. Compare the Mapbox Studio and test-project behavior with the expected road labels; done means the labels render along the road without the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.