cameraForAnnotations

abstract fun cameraForAnnotations(annotations: List<View>, edgeInsets: EdgeInsets? = null, bearing: Double? = null, pitch: Double? = null): 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

Note: This API isn't supported by Globe projection and will return NULL. Calling this API immediately after adding the view is a no-op. Please refer to OnViewAnnotationUpdatedListener documentation for understanding the exact moment of time when view annotation is positioned.

Return

CameraOptions object or NULL if annotations list is empty.

Parameters

annotations

view annotation list to be shown. Annotations should be added beforehand with ViewAnnotationManager.addViewAnnotation API.

edgeInsets

paddings to apply.

bearing

camera bearing to apply.

pitch

camera pitch to apply.