Fix custom marker updates on android #1611 #2048#2320
Merged
alvelig merged 1 commit intoreact-native-maps:masterfrom Jun 12, 2018
Merged
Fix custom marker updates on android #1611 #2048#2320alvelig merged 1 commit intoreact-native-maps:masterfrom
alvelig merged 1 commit intoreact-native-maps:masterfrom
Conversation
|
Thanks! I just tested this on my project, and it instantly fixed a lot of the performance problems I have been dealing with 👍👍 |
Collaborator
|
LGTM @alvelig 🐽 |
Contributor
|
@fqborges Wow! So the problem was just |
Contributor
Author
|
@alvelig Actually not empty, just outdated. And there was a chance of the outdated referenced bitmaps getting collected and not being valid for drawing anymore. I found that in certain updates the markers are removed then added to map again, instead of just get the properties updated. In this cases, the marker options used are the original created, with the initial values. |
Contributor
|
Great job. I'll test and maybe close even more issues. Thank you! |
dmitriismitnov
added a commit
to 91team/react-native-maps
that referenced
this pull request
Dec 5, 2018
…ive-maps#2048 Android: [react-native-maps#2320](react-native-maps#2320) Fixed custom marker updates on Android
pinpong
pushed a commit
to pinpong/react-native-maps
that referenced
this pull request
Feb 28, 2025
…dates Fix custom marker updates on android react-native-maps#1611 react-native-maps#2048
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Does any other open PR do the same thing?
No
What issue is this PR fixing?
On Android, using Google Maps, markers with custom views/images are not being updated correctly when other properties are changed (mainly coordinates). Sometimes markers are not draw anymore, until the child view/image is changed.
#1611 and #2048 are related.
How did you test this PR?