
Flexible mapping library facilitates cross-platform map integration with interactive elements, marker support, clustering, offline capabilities, customizable behavior, and efficient performance handling large datasets.
Current version 0.4.1.
π§ Project Status
π§ Vector tiles paused: Work is on hold until Compose provides async measurement + async drawing, which are needed for smooth, non-blocking rendering.
β
Raster tiles done: All raster features are complete and ready to use.
With KMaP, you implement your map logic once. Provide a MapProperties and a TileSource and use it across targets:
val mapProperties = /* your MapProperties implementation */
val tileSource = /* your TileSource<RasterTile> implementation */
val mapState = rememberMapState(mapProperties = mapProperties)
KMaP(
modifier = Modifier.fillMaxSize(),
mapState = mapState,
) {
rasterCanvas(
parameters = RasterCanvasParameters(
id = 1,
tileSource = tileSource::getTile,
),
gestureWrapper = MapGestureWrapper(
onGesture = { centroid, pan, zoom, rotation ->
mapState.motionController.move {
rotateByCentered(rotation.toDouble(), centroid)
zoomByCentered(zoom, centroid)
positionBy(pan)
}
},
)
)
}Current version 0.4.1.
π§ Project Status
π§ Vector tiles paused: Work is on hold until Compose provides async measurement + async drawing, which are needed for smooth, non-blocking rendering.
β
Raster tiles done: All raster features are complete and ready to use.
With KMaP, you implement your map logic once. Provide a MapProperties and a TileSource and use it across targets:
val mapProperties = /* your MapProperties implementation */
val tileSource = /* your TileSource<RasterTile> implementation */
val mapState = rememberMapState(mapProperties = mapProperties)
KMaP(
modifier = Modifier.fillMaxSize(),
mapState = mapState,
) {
rasterCanvas(
parameters = RasterCanvasParameters(
id = 1,
tileSource = tileSource::getTile,
),
gestureWrapper = MapGestureWrapper(
onGesture = { centroid, pan, zoom, rotation ->
mapState.motionController.move {
rotateByCentered(rotation.toDouble(), centroid)
zoomByCentered(zoom, centroid)
positionBy(pan)
}
},
)
)
}