MTCustomAnnotationViewClassic
class MTCustomAnnotationViewClassic(context: Context, widthPx: Int, heightPx: Int, initialCoordinates: LngLat, initialOffset: MTPoint = MTPoint(0.0, 0.0)) : FrameLayout, MTAnnotation, MTMapViewContentDelegate
Classic (XML/Views) variant of a custom annotation view that can be added to MTMapViewClassic.
This is a container: add your own child Android Views into it to render custom UI. The container is centered on the projected map coordinates.
Constructors
Functions
open override fun addExtraDataToAccessibilityNodeInfo(p0: AccessibilityNodeInfo, p1: String, p2: Bundle?)
Adds this annotation view to the classic map view and starts listening to map events.
open override fun dispatchCreateViewTranslationRequest(p0: MutableMap<AutofillId, LongArray>, p1: IntArray, p2: TranslationCapability, p3: MutableList<ViewTranslationRequest>)
open override fun dispatchScrollCaptureSearch(p0: Rect, p1: Point, p2: Consumer<ScrollCaptureTarget>)
open override fun dispatchWindowInsetsAnimationProgress(p0: WindowInsets, p1: MutableList<WindowInsetsAnimation>): WindowInsets
fun saveAttributeDataForStyleable(p0: Context, p1: IntArray, p2: AttributeSet?, p3: TypedArray, p4: Int, p5: Int)
MTAnnotation API: updates internal coordinates and reprojects.