diff --git a/toolkit/geo-compose/src/main/java/com/arcgismaps/toolkit/geocompose/MapView.kt b/toolkit/geo-compose/src/main/java/com/arcgismaps/toolkit/geocompose/MapView.kt index 4dacf5375..6d72a0b98 100644 --- a/toolkit/geo-compose/src/main/java/com/arcgismaps/toolkit/geocompose/MapView.kt +++ b/toolkit/geo-compose/src/main/java/com/arcgismaps/toolkit/geocompose/MapView.kt @@ -33,8 +33,10 @@ import androidx.compose.ui.tooling.preview.Preview import androidx.compose.ui.viewinterop.AndroidView import com.arcgismaps.ArcGISEnvironment import com.arcgismaps.mapping.ArcGISMap +import com.arcgismaps.mapping.view.BackgroundGrid import com.arcgismaps.mapping.view.DoubleTapEvent import com.arcgismaps.mapping.view.DownEvent +import com.arcgismaps.mapping.view.Grid import com.arcgismaps.mapping.view.LocationDisplay import com.arcgismaps.mapping.view.LongPressEvent import com.arcgismaps.mapping.view.MapView @@ -63,6 +65,8 @@ import kotlinx.coroutines.launch * @param mapViewInteractionOptions the [MapViewInteractionOptions] used by this composable [com.arcgismaps.toolkit.geocompose.MapView] * @param viewLabelProperties the [ViewLabelProperties] used by the composable [com.arcgismaps.toolkit.geocompose.MapView] * @param selectionProperties the [SelectionProperties] used by the composable [com.arcgismaps.toolkit.geocompose.MapView] + * @param grid represents the display of a coordinate system [Grid] on the composable [com.arcgismaps.toolkit.geocompose.MapView] + * @param backgroundGrid the default color and context grid behind the map surface * @param wrapAroundMode the [WrapAroundMode] to specify whether continuous panning across the international date line is enabled * @param onViewpointChanged lambda invoked when the viewpoint of the composable MapView has changed * @param onInteractingChanged lambda invoked when the user starts and ends interacting with the composable MapView @@ -89,6 +93,8 @@ public fun MapView( mapViewInteractionOptions: MapViewInteractionOptions = MapViewInteractionOptions(), viewLabelProperties: ViewLabelProperties = ViewLabelProperties(), selectionProperties: SelectionProperties = SelectionProperties(), + grid: Grid? = null, + backgroundGrid: BackgroundGrid = BackgroundGrid(), onViewpointChanged: (() -> Unit)? = null, onInteractingChanged: ((isInteracting: Boolean) -> Unit)? = null, onRotate: ((RotationChangeEvent) -> Unit)? = null, @@ -118,6 +124,8 @@ public fun MapView( it.labeling = viewLabelProperties it.wrapAroundMode = wrapAroundMode it.geometryEditor = geometryEditor + it.grid = grid + it.backgroundGrid = backgroundGrid }) overlay()