Skip to content

Update display composable mapview sample #168

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions display-composable-mapview/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Display Composable MapView
# Display composable mapview

Display a map using Jetpack Compose.

Expand All @@ -19,14 +19,18 @@ Run the sample to view the map. Pan and zoom to navigate the map.
3. Set its `Modifier` to define the MapView layout parameters
4. Use its `factory` parameter to provide context and create `MapView(context)`
5. Add the `MapView` to the lifecycle observer
6. Add the composable content to the Activity using `setContent { }`
6. Add the composable content to the Activity using `setContent { }`

## Relevant API

* ArcGISMap
* BasemapStyle
* MapView

## Additional information

This sample uses the GeoCompose Toolkit module to be able to implement a Composable MapView.

## Tags

basemap, compose, jetpack, map
basemap, compose, geocompose, jetpack, map, toolkit
8 changes: 4 additions & 4 deletions display-composable-mapview/README.metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
"keywords": [
"basemap",
"compose",
"geocompose",
"jetpack",
"map",
"toolkit",
"ArcGISMap",
"BasemapStyle",
"MapView"
Expand All @@ -23,9 +25,7 @@
"MapView"
],
"snippets": [
"src/main/java/com/esri/arcgismaps/sample/displaycomposablemapview/MainActivity.kt",
"src/main/java/com/esri/arcgismaps/sample/displaycomposablemapview/MapViewWithCompose.kt",
"src/main/java/com/esri/arcgismaps/sample/displaycomposablemapview/theme/Theme.kt"
"src/main/java/com/esri/arcgismaps/sample/displaycomposablemapview/MainActivity.kt"
],
"title": "Display Composable MapView"
"title": "Display composable mapview"
}
Loading