Class: Basemap

Description

Class added v2.1.

Define a basemap to display in the BasemapGallery dijit.

Samples

Search for samples that use this class.  

Class hierarchy

esri.dijit.Basemap

Constructor

Constructor Description
esri.dijit.Basemap(params?) Creates a new Basemap Object.
Constructor Detail

esri.dijit.Basemap(params?)

Creates a new Basemap Object.
Parameters:
<Object> params Optional Set of parameters used to create a basemap. See options list.
Options:
<BasemapLayers[]> layers An array of layers to add to the basemap.
<String> thumbnailURL Optional. A URL to a thumbnail image for the basemap that will be displayed in the BasemapGallery. If no thumbnail is is provided the gallery will display a blank. The default size for the image is 100 x 67 pixels.
<String> title Optional. Title for the basemap. This value is displayed in the BasemapGallery below the thumbnail image.
Code snippets:
var waterBasemap = new esri.dijit.Basemap({
  layers:[waterTemplateLayer],
  title:"Water Template",
  thumbnailUrl:"images/waterThumb.png"
});