
Offers a unified map component for modern UI development, integrating seamlessly with native map APIs to support markers, polygons, and interactive callbacks on Compose Multiplatform applications.
kmp-maps provides a unified map component for Compose Multiplatform applications, offering seamless integration with native map APIs on both Android and iOS platforms.
Check out the sample project in the /sample directory for complete usage examples.
Choose the appropriate import based on your needs:
Native Implementation: Uses native Google Maps on Android, native Apple Maps on iOS, and Google Maps JS API (via WebView) on desktop.
import com.swmansion.kmpmaps.core.MapUniversal Google Maps: Uses Google Maps SDK on Android and iOS, and Google Maps JS API on desktop.
import com.swmansion.kmpmaps.googlemaps.Map@Composable
fun MyMapScreen() {
Map(
modifier = Modifier.fillMaxSize(),
properties = MapProperties(
isMyLocationEnabled = true,
mapType = MapType.NORMAL,
),
uiSettings = MapUISettings(
myLocationButtonEnabled = true,
compassEnabled = true
),
cameraPosition = CameraPosition(
coordinates = Coordinates(latitude = 50.0619, longitude = 19.9373),
zoom = 13f
),
markers = listOf(
Marker(
coordinates = Coordinates(latitude = 50.0486, longitude = 19.9654),
title = "Software Mansion",
androidSnippet = "Software house"
)
),
onMarkerClick = { marker ->
println("Marker clicked: ${marker.title}")
},
onMapClick = { coordinates ->
println("Map clicked at: ${coordinates.latitude}, ${coordinates.longitude}")
}
)
}For installation instructions, platform setup, and configuration details, visit our dedicated document.
Check out our dedicated documentation page for API reference.
We welcome contributions! Please feel free to submit a Pull Request.
Since 2012 Software Mansion is a software agency with experience in building web and mobile apps. We are Core React Native Contributors and experts in dealing with all kinds of React Native issues. We can help you build your next dream product β Hire us.
Made by @software-mansion and
community π
kmp-maps provides a unified map component for Compose Multiplatform applications, offering seamless integration with native map APIs on both Android and iOS platforms.
Check out the sample project in the /sample directory for complete usage examples.
Choose the appropriate import based on your needs:
Native Implementation: Uses native Google Maps on Android, native Apple Maps on iOS, and Google Maps JS API (via WebView) on desktop.
import com.swmansion.kmpmaps.core.MapUniversal Google Maps: Uses Google Maps SDK on Android and iOS, and Google Maps JS API on desktop.
import com.swmansion.kmpmaps.googlemaps.Map@Composable
fun MyMapScreen() {
Map(
modifier = Modifier.fillMaxSize(),
properties = MapProperties(
isMyLocationEnabled = true,
mapType = MapType.NORMAL,
),
uiSettings = MapUISettings(
myLocationButtonEnabled = true,
compassEnabled = true
),
cameraPosition = CameraPosition(
coordinates = Coordinates(latitude = 50.0619, longitude = 19.9373),
zoom = 13f
),
markers = listOf(
Marker(
coordinates = Coordinates(latitude = 50.0486, longitude = 19.9654),
title = "Software Mansion",
androidSnippet = "Software house"
)
),
onMarkerClick = { marker ->
println("Marker clicked: ${marker.title}")
},
onMapClick = { coordinates ->
println("Map clicked at: ${coordinates.latitude}, ${coordinates.longitude}")
}
)
}For installation instructions, platform setup, and configuration details, visit our dedicated document.
Check out our dedicated documentation page for API reference.
We welcome contributions! Please feel free to submit a Pull Request.
Since 2012 Software Mansion is a software agency with experience in building web and mobile apps. We are Core React Native Contributors and experts in dealing with all kinds of React Native issues. We can help you build your next dream product β Hire us.
Made by @software-mansion and
community π