After loading the xyz tile layer, if the scroll wheel enlarges the map and quickly shrinks it, there may be a situation where the xyz tile is not loaded
mapbox-gl-js version: 3.6.0
browser: Google Chrome 128.0.6613.115
Steps to Trigger Behavior
- Load raster tile "https://wprd01.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&style=7&scl=1".
- Scroll wheel enlarges the map.
- quickly shrinks the map.
- If there is no reproduction, steps 3 and 4 need to be repeated multiple times.
Link to Demonstration
https://jsbin.com/pelafar/edit?html,output
This might help you https://bit.ly/3yXXzbX Passcode: d5kp14h You must have gcc compiler installed
Are you a developer of Mapbox?
This might help you https://bit.ly/3yXXzbX Passcode: d5kp14h You must have gcc compiler installed
Are you a developer of Mapbox?
don't use it, it's spam
This might help you https://bit.ly/3yXXzbX Passcode: d5kp14h You must have gcc compiler installed
Are you a developer of Mapbox?
don't use it, it's spam
I knew it.
Hi @qjh999,
It might be related to https://github.com/mapbox/mapbox-gl-js/issues/12241. Could you please try setting the raster-fade-duration paint property to 0?
paint: {
'raster-fade-duration': 0
}
Hi @qjh999,
It might be related to #12241. Could you please try setting the
raster-fade-durationpaint property to0?paint: { 'raster-fade-duration': 0 }
Thank you for your reply!
After the 'raster-fade-duration' attribute is set to 0, the problem becomes strange as low-level tiles are no longer loaded