Camera State
Use this class to access information about the map in relation to the camera.
Properties
Functions
Animates the camera towards the finalPosition in duration time.
suspends until the map has been initialized
Returns a position that corresponds to the given offset from the top-left corner of the map composable.
Returns a list of features that are rendered at the given offset from the top-left corner of the map composable, optionally limited to layers with the given layerIds and filtered by the given predicate. The result is sorted by render order, i.e. the feature in front is first in the list.
Returns the smallest bounding box that contains the currently visible area.
Returns the currently visible area, which is a four-sided polygon spanned by the four points each at one corner of the map composable. If the camera has tilt (pitch), this polygon is a trapezoid instead of a rectangle.
Returns an offset from the top-left corner of the map composable that corresponds to the given position. This works for positions that are off-screen, too.