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

Unset the map's target on unmount #1218

Merged
merged 1 commit into from
Aug 8, 2019

Conversation

dnlkoch
Copy link
Member

@dnlkoch dnlkoch commented Aug 7, 2019

BUGFIX

Description:

Unsets the target of the ol.Map if the MapComponent will unmount. This is needed, if the MapComponent runs through the lifecycle multiple times, e.g. in a routable application, as the map's target won't be set if the target has been set before.

Fixes #1216.

Copy link
Member

@marcjansen marcjansen left a comment

Choose a reason for hiding this comment

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

Very nice! Please merge.

@dnlkoch dnlkoch merged commit b2651f1 into terrestris:master Aug 8, 2019
@dnlkoch dnlkoch deleted the unset-map-target branch June 26, 2020 07:47
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.

Once rendered and unmounted, new renders gives blank space
2 participants