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

Implement tileRequestsDelay for tile sources in mapbox-gl-js #13208

Open
jo-chemla opened this issue Jun 28, 2024 · 0 comments
Open

Implement tileRequestsDelay for tile sources in mapbox-gl-js #13208

jo-chemla opened this issue Jun 28, 2024 · 0 comments

Comments

@jo-chemla
Copy link

Motivation

On the android and ios SDKs, there is a tileRequestsDelay parameter that can be enforced. This avoids loading too many unuseful tiles during animations - especially flyTo - eg used within geocoder controls. This helps reducing load on client network,
cache, server request count etc. This parameter is not available on mapbox-gl-js

Solliciting a flyTo from a zoom:16 location to another place at the same zoom level on the other side of the earth can provoke 1.000 map tiles requests. This led us to exceed the free quota of raster tiles API in only a few days - also because mapbox customers cannot enforce hard/soft spending limits/caps, which is another problem.

Design Alternatives

flyTo duration can be set to zero to load only tiles at the arrival location. This would however remove the ability to use such animations while maintaining a decent amount of tile requests.

Mock-Up

Could replicate the -requests-delay

Related feature request, inactive for the past 6 years: #5482

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

No branches or pull requests

2 participants