A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.arcgis.com/javascript/latest/sample-code/basemap-static-tiles/ below:

Static basemap tiles | Sample Code | ArcGIS Maps SDK for JavaScript 4.33


Attention

The ArcGIS Static Basemap Tiles service is currently only available if you have an ArcGIS Location Platform account.

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 blocks Copy

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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4