Skip to content

Component | LeafletMap: Calling fitView and fitToPoints in the next frame #148

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

Merged
merged 2 commits into from
Feb 28, 2023

Conversation

rokotyan
Copy link
Contributor

An enhancement that will help avoiding issues described in #132.

  • Calling fitView and fitToPoints in the next frame to avoid errors when the parent element was hidden prior to rendering;
  • New dev app example: Vector Leaflet Map (requires setting UNOVIS_MAP_TILE_SERVER_URL env variable).
Screen.Recording.2023-02-27.at.1.52.40.PM.web.mp4

Fixes Leaflet rendering errors when the parent element was hidden right before calling `fitView` or `fitToPoints`

#132
@rokotyan rokotyan added the enhancement New feature or request label Feb 27, 2023
@rokotyan rokotyan added this to the Release v1.1.0 milestone Feb 27, 2023
@rokotyan rokotyan requested a review from reb-dev February 27, 2023 22:01
@rokotyan rokotyan merged commit 2c05a00 into main Feb 28, 2023
@rokotyan rokotyan mentioned this pull request Apr 19, 2023
@rokotyan rokotyan deleted the fix/map-fit-method branch May 22, 2023 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants