Optionally show or hide Bing 'placeholder' tiles #14832
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #14541
Placeholder tiles are shown by default for different styles as described in the issue. The behavior is controlled by the presence of the
n=z
url param. This PR adds an optional parameter allowing users to decide whether to show these tiles or, alternatively, overzoom the best available resolution. If the parameter is not set, the default behavior for the style is used.This is a fairly big improvement from the method of using maxzoom to hide placeholder tiles mentioned in the example because Bing's zoom level coverage differs across the globe, so while a maxzoom of x works to hide the tiles in the US, a different one is required in, eg, Spain.