You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Pretty sure this is expected behavior. queryPointAnnotations relies on queryRenderedFeatures, and a point annotation isn't rendered until it has a chance to pass through the worker layout step, which is an asynchronous operation.
Thank you for the explanation, makes sense that the marker will not show up until they are actually rendered. I'm converting this issue to an android-docs issue.
And the returned View wouldn't be null if the MarkerView was found in the current Viewport. With above described behavior the user needs to wait since adding one is a asynchronous operation. To make this easier for integrating I'm providing an additional addMarker method with a callback interface that is invoked when getView() wouldn't return null anymore. This would end up in using an API as:
Activity
jfirebaugh commentedon Nov 15, 2016
Pretty sure this is expected behavior.
queryPointAnnotationsrelies onqueryRenderedFeatures, and a point annotation isn't rendered until it has a chance to pass through the worker layout step, which is an asynchronous operation.tobrun commentedon Nov 16, 2016
Thank you for the explanation, makes sense that the marker will not show up until they are actually rendered. I'm converting this issue to an
android-docsissue.tobrun commentedon Nov 30, 2016
Changing this to the 4.2.0 milestone since this behavior affects our examples and code we have been using so far in relation to MarkerView.
We used to be able to:
And the returned View wouldn't be null if the MarkerView was found in the current Viewport. With above described behavior the user needs to wait since adding one is a asynchronous operation. To make this easier for integrating I'm providing an additional
addMarkermethod with a callback interface that is invoked whengetView()wouldn't return null anymore. This would end up in using an API as:Besides above we need tests for regressions and an update to documentation around the asynchronous behavior of adding markers for the
4.2.0-release.tobrun commentedon Dec 6, 2016
Related PR for this has landed on release branch, closing