1 Reply Latest reply on May 1, 2012 7:03 AM by DSwingley-esristaff

    Base Map Gallery

      Here is an example for using BING maps in Basemapgallery: http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/widget_basemapbutton.html
      I want to use ESRI maps (Imagery, Roads, and Hybrid (Imagery&Roads)). Is there a way to specify the layers in the same way Bing layers are defined instead of putting the whole URL? Like:
      layers: [new esri.dijit.BasemapLayer({
                  type: "BingMapsHybrid"

      I tried putting ESRIMapsHybrid, but did not work.

      Does anyone know?
        • Re: Base Map Gallery
          No, this is not currently possible´┐Ż?? bing (as well as Open Street Map) are handled as special cases in the basemap gallery and you can specify them by creating a BasemapLayer with only a type and is documented. We're looking at simplifying this in the future but it is not in the API yet. For map services hosted on ArcGIS Online, you'll need to create BasemapLayers using each map service's URL.