+ Reply to Thread
Results 1 to 2 of 2

Thread: Base Map Gallery

  1. #1
    Jatin Patel
    Join Date
    Feb 2012
    Posts
    41
    Points
    0
    Answers Provided
    2


    0

    Question Base Map Gallery

    Here is an example for using BING maps in Basemapgallery: http://help.arcgis.com/en/webapi/jav...mapbutton.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:
    Code:
    layers: [new esri.dijit.BasemapLayer({
                type: "BingMapsHybrid"
              })],
    I tried putting ESRIMapsHybrid, but did not work.

    Does anyone know?

  2. #2
    Derek Swingley

    Join Date
    May 2010
    Posts
    1,859
    Points
    891
    Answers Provided
    165


    0

    Default 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.
    --
    @derekswingley | ArcGIS API for JavaScript Team Member.

    If you're posting a code or html sample, please wrap it in code tags.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts