Hide Table of Contents
esri/dijit/util
esri/layer/pixelFilters
esri/process
esri/support
esri/workers
Object: esri/basemaps

dojo.require("esri.basemaps");

Description

(Added at v3.12)
This class contains properties referencing default basemaps used in the JS API that allow you to add map services as default basemaps in web applications. esri/basemaps replaces esri.config.defaults.map.basemaps, which is deprecated as of v3.12.
To view documentation for the baseLayers property of each basemap object, see the BasemapLayer class.
  require([
    "esri/basemaps",
    "esri/map",
    "dojo/domReady!"
  ], function (esriBasemaps, Map){
    esriBasemaps.mybasemap= {
      baseMapLayers: [{url: "https://www.example.com/arcgis/rest/services/MyBasemap/MapServer"}
      ],
      thumbnailUrl: "https://www.example.com/images/thumbnail_2014-11-25_61051.png",
      title: "Second best basemap"
    };

    var map = new Map("ui-map", {
      basemap: "mybasemap"
    });
});
See also

Samples

Search for samples that use this class.

Properties

NameTypeSummary
dark-grayObject[deprecated] The services used in this basemap are now in Mature Support and are no longer updated - please use dark-gray-vector instead.
dark-gray-vectorObjectThe Dark Gray Canvas [v2] vector tile layer provides a detailed basemap for the world featuring a neutral background style with minimal colors, labels, and features.
grayObject[deprecated] The services used in this basemap are now in Mature Support and are no longer updated - please use gray-vector instead.
gray-vectorObjectThe Light Gray Canvas [v2] vector tile layer provides a detailed basemap for the world featuring a neutral background style with minimal colors, labels, and features.
hybridObjectThe World Imagery with Labels map is a detailed imagery map layer and labels that is designed to be used as a basemap for various maps and applications.
national-geographicObject[deprecated] The service used in this basemap is now in Mature Support and is no longer updated.
oceansObjectThe Ocean Basemap is designed to be used as a basemap by marine GIS professionals and as a reference map by anyone interested in ocean data.
osmObjectThe OpenStreetMap is a community map layer that is designed to be used as a basemap for various maps and applications.
satelliteObjectThe World Imagery map is a detailed imagery map layer that is designed to be used as a basemap for various maps and applications: https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer.
streetsObject[deprecated] The service used in this basemap is now in Mature Support and is no longer updated - please use streets-vector instead.
streets-navigation-vectorObjectThe World Navigation Map [v2] vector tile layer provides a detailed basemap for the world featuring a custom navigation map style.
streets-night-vectorObjectThe World Street Map (Night) [v2] vector tile layer provides a detailed basemap for the world featuring a custom "night time" street map style.
streets-relief-vectorObjectThe World Street Map (with Relief) [v2] vector tile layer provides a detailed basemap for the world featuring a classic Esri street map style designed for use with a relief map.
streets-vectorObjectThe World Street Map [v2] vector tile layer provides a detailed basemap for the world featuring a classic Esri street map style.
terrainObjectThe Terrain with Labels basemap is designed to be used to overlay and emphasize other thematic map layers.
topoObject[deprecated] The World_Topo_Map service used in this basemap is now in Mature Support and is no longer updated - please use topo-vector instead.
topo-vectorObjectThe World Topographic Map [v2] vector tile layer provides a detailed basemap for the world featuring a classic Esri topographic map style designed for use with a relief map.
Property Details

<Object> dark-gray

[deprecated] The services used in this basemap are now in Mature Support and are no longer updated - please use dark-gray-vector instead. The Dark Gray Canvas basemap is designed to be used as a soothing background map for overlaying and focus attention on other map layers. It contains:

<Object> dark-gray-vector

The Dark Gray Canvas [v2] vector tile layer provides a detailed basemap for the world featuring a neutral background style with minimal colors, labels, and features. The vector tile layer is similar in content and style to the popular Dark Gray Canvas map, which is delivered as two map services with raster fused map cache. (Added at v3.16)

<Object> gray

[deprecated] The services used in this basemap are now in Mature Support and are no longer updated - please use gray-vector instead. The Light Gray Canvas basemap is designed to be used as a neutral background map for overlaying and emphasizing other map layers. It contains:

<Object> gray-vector

The Light Gray Canvas [v2] vector tile layer provides a detailed basemap for the world featuring a neutral background style with minimal colors, labels, and features. (Added at v3.16)

<Object> hybrid

The World Imagery with Labels map is a detailed imagery map layer and labels that is designed to be used as a basemap for various maps and applications. It contains:

<Object> national-geographic

[deprecated] The service used in this basemap is now in Mature Support and is no longer updated. Please use another basemap.
The National Geographic basemap was designed to be used as a general reference map for informational and educational purposes: https://services.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer.

<Object> oceans

The Ocean Basemap is designed to be used as a basemap by marine GIS professionals and as a reference map by anyone interested in ocean data. It contains:

<Object> osm

The OpenStreetMap is a community map layer that is designed to be used as a basemap for various maps and applications.

<Object> satellite

The World Imagery map is a detailed imagery map layer that is designed to be used as a basemap for various maps and applications: https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer.

<Object> streets

[deprecated] The service used in this basemap is now in Mature Support and is no longer updated - please use streets-vector instead.
The Streets basemap presents a multiscale street map for the world: https://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer.

<Object> streets-navigation-vector

The World Navigation Map [v2] vector tile layer provides a detailed basemap for the world featuring a custom navigation map style. (Added at v3.16)

<Object> streets-night-vector

The World Street Map (Night) [v2] vector tile layer provides a detailed basemap for the world featuring a custom "night time" street map style. (Added at v3.16)

<Object> streets-relief-vector

The World Street Map (with Relief) [v2] vector tile layer provides a detailed basemap for the world featuring a classic Esri street map style designed for use with a relief map. (Added at v3.16)

<Object> streets-vector

The World Street Map [v2] vector tile layer provides a detailed basemap for the world featuring a classic Esri street map style. (Added at v3.16)

<Object> terrain

The Terrain with Labels basemap is designed to be used to overlay and emphasize other thematic map layers. It contains:

<Object> topo

[deprecated] The World_Topo_Map service used in this basemap is now in Mature Support and is no longer updated - please use topo-vector instead. The Topographic map includes boundaries, cities, water features, physiographic features, parks, landmarks, transportation, and buildings.

<Object> topo-vector

The World Topographic Map [v2] vector tile layer provides a detailed basemap for the world featuring a classic Esri topographic map style designed for use with a relief map. (Added at v3.16)
Show Modal