mapbox / mapbox-gl-js

Interactive, thoroughly customizable maps in the browser, powered by vector tiles and WebGL
https://docs.mapbox.com/mapbox-gl-js/
Other
11.19k stars 2.22k forks source link

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 #13274

Open qjh999 opened 2 months ago

qjh999 commented 2 months ago

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

qjh999 commented 2 months ago

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

Are you a developer of Mapbox?

w2wewwww commented 2 months ago

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

qjh999 commented 2 months ago

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.

stepankuzmin commented 1 month ago

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
}
qjh999 commented 1 month ago

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