Skip to content
This repository has been archived by the owner on Apr 30, 2023. It is now read-only.

persist location hash #58

Merged
merged 2 commits into from
Jul 8, 2020
Merged

persist location hash #58

merged 2 commits into from
Jul 8, 2020

Conversation

stephanlindauer
Copy link
Member

this makes sure we don't change location and zoom when we switch between map and gallery

@stephanlindauer stephanlindauer requested a review from a team as a code owner July 7, 2020 20:03
//remove old markers
currentMarkers.forEach(function (marker) {
bikeMap.removeLayer(marker)
});
currentMarkers = []
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

plus: this fixes a memory leak

@stephanlindauer stephanlindauer merged commit a511645 into master Jul 8, 2020
@stephanlindauer stephanlindauer deleted the persist_location_hash branch July 8, 2020 09:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants