Maps
Each layer
Basemap layers
A basemap is the foundational layer and data that provides the overall visual and geographic context for a map
A basemap is composed of a collection of base layers and reference layers
The basemap styles service
ArcGISEnvironment.apiKey = ApiKey.create(YOUR_ACCESS_TOKEN)
val arcGISMap = ArcGISMap(BasemapStyle.ArcGISNavigation)
// val arcGISMap = ArcGISMap(BasemapStyle.ArcGISTopographic)
//val arcGISMap = ArcGISMap(BasemapStyle.ArcGISLightGray)
// val arcGISMap = ArcGISMap(BasemapStyle.OpenDarkGray)
// Display the map by assigning it to the mutable map property used by the Composable MapView.
map = arcGISMap
ArcGISEnvironment.apiKey = ApiKey.create(YOUR_ACCESS_TOKEN)
val arcGISMap = ArcGISMap(BasemapStyle.ArcGISImageryStandard)
// val arcGISMap = ArcGISMap(BasemapStyle.ArcGISHillshadeLight)
// val arcGISMap = ArcGISMap(BasemapStyle.ArcGISHillshadeDark)
// Display the map by assigning it to the mutable map property used by the Composable MapView.
map = arcGISMap
Data layers
A data layer
A data layer
The data for a data layer
A data layer can also be created from a dataset stored on the device
To add a data layer
ArcGISEnvironment.apiKey = ApiKey.create(YOUR_ACCESS_TOKEN)
val arcGISMap = ArcGISMap(BasemapStyle.ArcGISTopographic)
val trailheadsLayer = FeatureLayer.createWithFeatureTable(
ServiceFeatureTable("https://services3.arcgis.com/GVgbJbqm8hXASVYi/arcgis/rest/services/Trailheads_Styled/FeatureServer/0"))
val trailsLayer = FeatureLayer.createWithFeatureTable(
ServiceFeatureTable("https://services3.arcgis.com/GVgbJbqm8hXASVYi/arcgis/rest/services/Trails_Styled/FeatureServer/0"))
val openSpacesLayer = FeatureLayer.createWithFeatureTable(
ServiceFeatureTable("https://services3.arcgis.com/GVgbJbqm8hXASVYi/arcgis/rest/services/Parks_and_Open_Space_Styled/FeatureServer/0"))
arcGISMap.operationalLayers.addAll(listOf(openSpacesLayer, trailsLayer, trailheadsLayer))
// Display the map by assigning it to the mutable map property used by the Composable MapView.
map = arcGISMap
Use API key access tokens
An API key access tokenApiKeyResource.
Tutorials
Samples

Add feature layers

Add scene layer from service

Manage operational layers

Add dictionary renderer to feature layer


