View Annotation Manager
interface ViewAnnotationManager
Content copied to clipboard
Manager API to control View Annotations.
View annotations are Android Views that are drawn on top of the MapView and bound to some Geometry (only Point is supported for now). 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 annotations are not explicitly bound to any sources however ViewAnnotationOptions.associatedFeatureId could be used to bind given view annotation with some Feature by Feature.id meaning visibility of view annotation will be driven by visibility of given feature.
Functions
addViewAnnotation
Link copied to clipboard
abstract fun addViewAnnotation(view: View, options: ViewAnnotationOptions)
Content copied to clipboard
Add annotation View which is already inflated.
abstract fun addViewAnnotation(@LayoutRes() resId: Int, options: ViewAnnotationOptions): View
Content copied to clipboard
abstract fun addViewAnnotation(@LayoutRes() resId: Int, options: ViewAnnotationOptions, asyncInflater: AsyncLayoutInflater, asyncInflateCallback: (View) -> Unit)
Content copied to clipboard
getViewAnnotationByFeatureId
Link copied to clipboard
getViewAnnotationOptionsByFeatureId
Link copied to clipboard
abstract fun getViewAnnotationOptionsByFeatureId(featureId: String): ViewAnnotationOptions?
Content copied to clipboard
Find ViewAnnotationOptions of view annotation by feature id if it was specified as part of ViewAnnotationOptions.associatedFeatureId.
getViewAnnotationOptionsByView
Link copied to clipboard
abstract fun getViewAnnotationOptionsByView(view: View): ViewAnnotationOptions?
Content copied to clipboard
removeViewAnnotation
Link copied to clipboard
updateViewAnnotation
Link copied to clipboard
abstract fun updateViewAnnotation(view: View, options: ViewAnnotationOptions): Boolean
Content copied to clipboard