SchemeView

@Composable
fun SchemeView(state: XYCanvasState, features: FeatureGroup<XY>, modifier: Modifier = Modifier.fillMaxSize())


@Composable
fun SchemeView(features: FeatureGroup<XY>, initialViewPoint: ViewPoint<XY>? = null, initialRectangle: Rectangle<XY>? = null, config: ViewConfig<XY> = ViewConfig(), modifier: Modifier = Modifier.fillMaxSize())

A builder for a Scheme with static features.


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

Draw a scheme using convenient parameters. If neither initialViewPoint, noe initialRectangle is defined, use map features to infer 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