CameraBounds

Holds information about camera bounds and zoom limitations for the map at the current location.

This class provides both zoom level constraints and the corresponding visible widths in meters that can be displayed at those zoom levels. The visible width values account for the current camera padding, screen dimensions, latitude, and Web Mercator projection.

Note: The naming of distance properties reflects the zoom level they correspond to, not the magnitude of the distance itself. At minimum zoom (most zoomed out), you see a larger area. At maximum zoom (most zoomed in), you see a smaller area.

Properties

Link copied to clipboard

The maximum zoom level allowed (typically 22). This is the most zoomed in state where the smallest area is visible.

Link copied to clipboard

The visible width in meters at minZoom (most zoomed in). This represents the minimum visible width you can request. Despite the "min" prefix, this is the smaller distance value.

Link copied to clipboard

The minimum zoom level allowed (typically 0). This is the most zoomed out state where the largest area is visible.

Link copied to clipboard

The visible width in meters at maxZoom (most zoomed out). This represents the maximum visible width you can request. Despite the "max" prefix, this is the larger distance value.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String