Skip to content

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.

// 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],
}),
});