-
-
Notifications
You must be signed in to change notification settings - Fork 856
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
[Bug]: PointAnnotation collection not being rendered on screen first render #3571
Comments
You need to call PointAnnotation refresh from onLoad of image - see: https://rnmapbox.github.io/docs/components/PointAnnotation#refresh |
@mfazekas as far is I know that refresh method is for android only and this issue is happening on an iPhone / iOS |
@mfazekas tried it just in case but this does not fix the issue. This should still be open |
I'll need to update the docs. If you're using v10 or later, then refresh is needed. It was required for android only on old versions, new versions always requires If you can reproduce the issue with refresh pls add refresh to the reproducer. |
@mfazekas tried again it and it works. Thank you for the quick response and for contributing to this library! |
Mapbox Implementation
Mapbox
Mapbox Version
default
React Native Version
0.74.2
Platform
iOS
@rnmapbox/maps
version10.1.25
Standalone component to reproduce
Works with a View
But it doesn't work with Image or BackgroundImage
Observed behavior and steps to reproduce
Steps to reproduce:
Expected behavior:
Location marker should show even on first render
Actual behavior:
Location marker only shows if the user goes back to the last screen and navigates again to the place where the component with Mapbox is present
Expected behavior
No response
Notes / preliminary analysis
This happens only when using an Image or BackgroundImage asset for PointAnnotation.
Issue related to #1020
Additional links and references
No response
The text was updated successfully, but these errors were encountered: