Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Sep 6, 2024 · 5 comments

Comments

@qjh999
Copy link

qjh999 commented Sep 6, 2024

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
Copy link
Author

qjh999 commented Sep 6, 2024

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

Are you a developer of Mapbox?

@w2wewwww
Copy link

w2wewwww commented Sep 6, 2024

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
Copy link
Author

qjh999 commented Sep 6, 2024

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
Copy link
Contributor

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
}

@qjh999
Copy link
Author

qjh999 commented Sep 23, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants