Map

fun Map(modifier: Modifier, visibleImages: List<ImageViewData>, visibleRegions: List<RegionViewData>, boundingBox: BoundingBoxViewData?, zoomCameraToFitImages: Boolean, onMoveFinished: () -> Unit, regionPressedAt: (index: Int) -> Unit, onVisibleMapAreaChangeTo: (LatLngBounds) -> Unit)

The Map component displays the map along with its images and regions. It also handles zooming to fit all images, detects region presses, and fires events for camera movement and visible map area changes.

Parameters

modifier

the modifier used for the internal Box.

visibleImages

the list of images currently visible in the map area.

visibleRegions

the list of region data objects representing the visible regions.

boundingBox

the bounding box data used for zooming to fit images (see BoundingBoxViewData for details).

zoomCameraToFitImages

a boolean indicating whether to zoom the map to fit all visible images.

onMoveFinished

the event fired when the map camera finishes moving.

regionPressedAt

the event fired when a region is pressed, passing the index of the pressed region.

onVisibleMapAreaChangeTo

the event fired when the visible map area changes (e.g., user gesture or zoom).