Skip to content

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

Merged
rokotyan merged 2 commits into
mainfrom
fix/map-fit-method
Feb 28, 2023
Merged

Component | LeafletMap: Calling fitView and fitToPoints in the next frame#148
rokotyan merged 2 commits into
mainfrom
fix/map-fit-method

Conversation

@rokotyan

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