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

Fixed minimap rendering issue #10653 #10694

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

Darshit42
Copy link

Introduced a new property _allowedUnderZoomAmount in tile_layer.js to manage zooming out beyond usual bounds effectively, resolving rendering issues with the minimap.

before
The minimap turned black when zoomed out of the usual bounds.

image

after
The minimap now renders properly, even when zoomed out beyond usual bounds.

image

changes that i made--
in modules/renderer/tile_layer.js

Added _allowedUnderZoomAmount property to handle zooming logic.
Modified zoom calculations in render and imageTransform functions to respect the new property.

in modules/ui/map_in_map.js

Updated the instantiation of rendererTileLayer to set _allowedUnderZoomAmount.

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

Successfully merging this pull request may close these issues.

1 participant