The view is wrong when use map.setLayoutProperty() to set "symbol-placement = 'line'"
Nobody has claimed this yet.
- 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:

This is my test project:

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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