MapView

@Composable
fun MapView(mapState: MapCanvasState, mapTileProvider: MapTileProvider, features: FeatureGroup<Gmc>, modifier: Modifier)

A component that renders map and provides basic map manipulation capabilities


@Composable
fun MapView(mapTileProvider: MapTileProvider, config: ViewConfig<Gmc>, features: FeatureGroup<Gmc>, initialViewPoint: ViewPoint<Gmc>? = null, initialRectangle: Rectangle<Gmc>? = null, modifier: Modifier)

Create a MapView with given features group.


@Composable
fun MapView(mapTileProvider: MapTileProvider, config: ViewConfig<Gmc> = ViewConfig(), initialViewPoint: ViewPoint<Gmc>? = null, initialRectangle: Rectangle<Gmc>? = null, modifier: Modifier = Modifier.fillMaxSize(), buildFeatures: FeatureGroup<Gmc>.() -> Unit = {})

Draw a map using convenient parameters. If neither initialViewPoint, noe initialRectangle is defined, use map features to infer the view region.

Parameters

initialViewPoint

The view point of the map using center and zoom. Is used if provided

initialRectangle

The rectangle to be used for view point computation. Used if initialViewPoint is not defined.

buildFeatures
  • a builder for features