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

feat(map): implement initial version of map-instance caching #349

Merged
merged 2 commits into from
May 8, 2024

Conversation

usefulthink
Copy link
Collaborator

@usefulthink usefulthink commented May 8, 2024

Introduces map-instance caching, allowing maps to be persisted across unmount/remount cycles.

Fixes #319

BREAKING CHANGE: Introduction of map instance caching needed a change to the DOM-Structure produced by the map component (added a div-element owned by the Map component to contain the map instance).

Introduces map-instance caching, allowing maps to be persisted across unmount/remount cycles.

BREAKING CHANGE: Introduction of map instance caching needed a change to the DOM-Structure produced by the map component (added a div-element owned by the Map component to contain the map instance).
@usefulthink usefulthink merged commit 4a6e83a into visgl:main May 8, 2024
2 checks passed
@usefulthink usefulthink deleted the feat/map-caching branch May 8, 2024 08:03
usefulthink added a commit to usefulthink/react-google-maps that referenced this pull request May 10, 2024
Introduction of the intermediate div with visgl#349 indirectly broke relative positioning of elements withing the map-container.

Before that change, elements would be added to a container where position:relative was set by the Maps JavaScript API. This is no longer happening, so we need to set it ourselves.
usefulthink added a commit that referenced this pull request May 10, 2024
Introduction of the intermediate div with #349 indirectly broke relative positioning of elements withing the map-container.

Before that change, elements would be added to a container where position:relative was set by the Maps JavaScript API. This is no longer happening, so we need to set it ourselves.
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.

[Feat] Add ability to cache map-instances to be re-used when remounted
1 participant