Skip to content

Fix overlay removal bug#2197

Merged
rborn merged 1 commit intoreact-native-maps:masterfrom
kabbi:fix-overlay-removal
May 1, 2018
Merged

Fix overlay removal bug#2197
rborn merged 1 commit intoreact-native-maps:masterfrom
kabbi:fix-overlay-removal

Conversation

@kabbi
Copy link
Contributor

@kabbi kabbi commented Apr 14, 2018

Does any other open PR do the same thing?

Nope

What issue is this PR fixing?

When <Overlay/> component is unmounted before the image had a chance to load (either a large image, or slow internet connection), after image finishes loading overlay is still rendered, and cannot be removed afterwards.

How did you test this PR?

There was a bug on Android which didn't cancel image rendering after removing from map. My change erases map reference, thus avoiding this bug.

Tested on several Android devices, does not seem to affect iOS.

@rborn
Copy link
Collaborator

rborn commented Apr 18, 2018

LGTM
@alvelig 🐽

@alvelig
Copy link
Contributor

alvelig commented Apr 18, 2018

Could #2027 relate to it?

@kabbi
Copy link
Contributor Author

kabbi commented Apr 20, 2018

@alvelig I don't really think so. This has a very specific and narrow use-case, and the issue you've linked does not even use any Overlays, so it should not be related.

@rborn rborn merged commit 25776e7 into react-native-maps:master May 1, 2018
pinpong pushed a commit to pinpong/react-native-maps that referenced this pull request Feb 28, 2025
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.

3 participants