Static basemap tiles

Explore in the sandbox


This sample shows how to use the ArcGIS Static Basemap Tiles service with the TileLayer class. This service provides access to raster basemap tiles for the world, and supports a variety of ArcGIS styles. The preferred language labels or worldview can be set for all styles via the layer's customParameters.

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// create the tile layer with the default style
const staticBasemapLayer = new TileLayer({
  url: `https://static-map-tiles-api.arcgis.com/arcgis/rest/services/static-basemap-tiles-service/v1/arcgis/outdoor/static`,
  customParameters: {
    // set the basemap language to French
    language: "fr",
    // you can also set the worldview here
    // worldview: "unitedStatesOfAmerica",
  }
});
// create the basemap with the tile layer and add it to the map
viewElement.map = new Map({
  basemap: new Basemap({
    baseLayers: [staticBasemapLayer]
  })
});

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.