Camera Projection
Provides an imperative API to interact with the projection of the map, such as converting coordinates or querying what's visible.
Functions
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.