`map.setLayoutProperty('layerID', 'visibility', 'none')` will trigger duplicate http request
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.49.0
### Question
simple hidden a raster layer `map.setLayoutProperty('layerID', 'visibility', 'none')` will duplicate http request`
### **Is it a special feature or something need improved?**
### step
1. add a raster layer with google map source.and clear network console

2. hidden raster layer by `map.setLayoutProperty('layerID', 'visibility', 'none')`,and you will find it trigger duplicate http

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
Reproduce the issue in mapbox-gl-js 0.49.0 with a raster layer backed by the Google map source, then call map.setLayoutProperty('layerID', 'visibility', 'none') while watching the network console. Trace the visibility update and raster request handling; done means hiding the layer does not trigger a duplicate HTTP request.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- networking, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100