You can use one or more basemap layers
Basemap layer types
There are two fundamental types of basemap layers: vector tile and image tile. There are many vector tile styles available, such as streets and streets night, gray canvas, navigation, and topographic. Image tiles include satellite imagery, ocean, hillshade, and others.
Vector tile layers
In addition to the default vector basemap styles, you can create custom vector basemap styles
Image tile layers
For a complete list of styles, see the Custom basemap styles topic in the Mapping and location services guide.
Basemaps
Basemap layers are organized as a basemap
The following are the source and source types to create a Basemap to use in your ArcGIS Map.
Source | Source type |
|---|---|
Basemap layer | Basemap |
Web map | Basemap |
Image tile layer | Image layer |
Vector tile layer | Vector tile layer |
Basemaps from the basemap layer service
The basemap layer service
There are two ways to access basemap layers: through the basemap styles service or the tile services. You can access the basemap styles service with a URL and parameters to get the JSON definition for a specific basemap style. To see a complete list of styles, visit the Basemap styles service (v2) in the ArcGIS REST APIs documentation.
With the plugin, you can use the standard endpoint formatted as follows.
-
For the basemap styles service (v2):
Use dark colors for code blocks Copy https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2/webmaps/{data_source}/{style}
For information about tile services, see the image tile layers and vector tile layers sections.
Basemaps from web maps
As mentioned previously, you can create a basemap from a URL that references a web mapWeb Map which is stored in an ArcGIS Portal
You can load any web map that contains image tile layers, vector tile layers, or reference layers as a basemap. It is possible to use web maps that contain other layer types, but they will not be displayed in the viewport.
The SDK provides several preset basemaps from the Map Creator UI. These also use the basemap layer service with the web map format.
There are two ways to format the URL to create a basemap from a web map:
- Item page URL
- REST endpoint URL
Set a basemap
In the Basemap panel is a list of selectable, preset basemaps. You can also set a basemap from a basemap layer service, a web map, an image tile layer, a vector tile layer, or a local tile package.
If you do not want to set a basemap, click the ArcGIS Map game object in the Hierarchy window and empty the Basemap field in the Inspector window.
The preset basemaps are listed in the World Basemaps for Developers group in ArcGIS Online
To set a custom basemap:
-
Click the Basemap tab.
-
Click + Add New at the bottom of the list. A pop-up window opens.
-
In the Source field, enter a service URL or a local file path.
- To use a basemap layer service or a web map, select Basemap from the Type drop-down list.
- To use an image tile layer service, select Image Layer from the Type drop-down list.
- To use a
.tpk, or.tpkxtile package as a basemap source, copy and paste the local tile package file path, then select Image Layer from the Type drop-down list. - To use a vector tile layer service, select Vector Tile Layer from the Type drop-down list.
- To use a
.vtpkfile package as a basemap source, copy and paste the local vector tile package file path, then select Vector Tile Layer from the Type drop-down list. - To use a privately hosted web map or services, select the matching configuration from the Authentication drop-down list. For more information about using private content, see ArcGIS identity.
-
Type a Name for your basemap; this will be used to identify it in the basemap gallery.
-
Click Add to finish creating the custom basemap. The pop-up window closes.
-
Verify that the custom basemap is selected in the gallery.
To remove a custom basemap registry from the basemap gallery, click the X on the thumbnail.
Refer to FAQ for information about troubleshooting data loading issues.