View Annotation Manager
Manager API to control View Annotations.
View annotations are Android Views on top of the MapView and bound to some Geometry or AnnotatedLayerFeature.
In case some view annotations intersect on the screen Z-index is based on addition order.
View annotations are invariant to map camera transformations however such properties as size, visibility etc could be controlled by the user using update operation.
View annotation manager instance is destroyed automatically when MapView.onDestroy is called.
Types
Functions
Add an instance of OnViewAnnotationUpdatedListener.
Add annotation View which is already inflated. View dimensions will be taken as width / height from view's layout params unless they are not specified explicitly with ViewAnnotationOptions.Builder.width and ViewAnnotationOptions.Builder.height.
Add view annotation inflated from resId synchronously.
Add view annotation inflated from resId asynchronously.
Return camera options bound to given view annotation list, padding, bearing and pitch values. Annotations with ViewAnnotationOptions.visible set to false will be excluded from the calculations of CameraOptions. Annotations with only View.VISIBLE will be included in the calculations for CameraOptions.
Return camera options bound to given view annotation list, padding, bearing and pitch values. Annotations with ViewAnnotationOptions.visible set to false will be excluded from the calculations of CameraOptions. Annotations with only View.VISIBLE will be included in the calculations for CameraOptions
Find View by annotated layer feature if it was specified as part of ViewAnnotationOptions.getAnnotatedFeature.
Get current ViewAnnotationOptions for given view.
Find ViewAnnotationOptions by annotated layer feature if it was specified as part of ViewAnnotationOptions.getAnnotatedFeature.
Get view annotation update mode.
Remove all view annotations.
Remove an instance of OnViewAnnotationUpdatedListener.
Remove given annotation view from the map if it was present.
Set view annotation update mode defined in ViewAnnotationUpdateMode.
Update given view annotation view with ViewAnnotationOptions. Important thing to keep in mind that only properties present in options will be updated, all other will remain the same as specified before.
Properties
Return Map of added View with their ViewAnnotationOptions. This method should be called every time to get all added Views and associated ViewAnnotationOptions.