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
// Authenticate your application using a supported method:
// - API key authentication
// - User authentication
// Example vector tile basemaps: .arcGISTopographic, .arcGISLightGray,
final vectorMap = ArcGISMap.withBasemapStyle(
BasemapStyle.arcGISNavigation,
);
// Authenticate your application using a supported method:
// - API key authentication
// - User authentication
// Example image tile basemaps: .arcGISHillshadeLight, .arcGISHillshadeDark
final imageMap = ArcGISMap.withBasemapStyle(
BasemapStyle.arcGISImagery,
);
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
// Authenticate your application using a supported method:
// - API key authentication
// - User authentication
final topoMap = ArcGISMap.withBasemapStyle(BasemapStyle.arcGISTopographic);
final trailHeadsLayer = FeatureLayer.withFeatureTable(
ServiceFeatureTable.withUri(
Uri.parse(
'https://services3.arcgis.com/GVgbJbqm8hXASVYi/arcgis/rest/services/Trailheads_Styled/FeatureServer/0',
),
),
);
final trailsLayer = FeatureLayer.withFeatureTable(
ServiceFeatureTable.withUri(
Uri.parse(
'https://services3.arcgis.com/GVgbJbqm8hXASVYi/arcgis/rest/services/Trails_Styled/FeatureServer/0',
),
),
);
final openSpaceLayer = FeatureLayer.withFeatureTable(
ServiceFeatureTable.withUri(
Uri.parse(
'https://services3.arcgis.com/GVgbJbqm8hXASVYi/arcgis/rest/services/Parks_and_Open_Space_Styled/FeatureServer/0',
),
),
);
// Add data layers to the map.
topoMap.operationalLayers.addAll(
[trailHeadsLayer, trailsLayer, openSpaceLayer],
);
// Set the ArcGIS map on the map view controller.
mapViewController.arcGISMap = topoMap;
Use API key access tokens
An API key access tokenApiKeyResource.
Samples

Add feature layers

Group layers together

Filter by definition expression or display filter
