Base Map Gallery

539
1
05-01-2012 05:24 AM
JatinPatel
Occasional Contributor
Here is an example for using BING maps in Basemapgallery: http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/widget_basemap...
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?
0 Kudos
1 Reply
derekswingley1
Frequent Contributor
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.
0 Kudos