AnsweredAssumed Answered

How to add MapQuestOpen basemap to BasemapGallery

Question asked by joshua.rotteveel on Mar 29, 2016

Currently I have a BasemapGallery implemented in my js webapp, however I would like to be able to add the MapQuestOpen basemap to the Switch Basemap widget in addition to the basemaps that are offered by arcgis.com.  Below is my code, I believe I need to do a basemapGallery.add.  Thanks in advance for any help out there.

 

var basemapGallery = new BasemapGallery({

          showArcGISBasemaps: true,

          map: map

        }, "basemapGallery");

        basemapGallery.startup();

 

 

        var mapquest = new Basemap({

          layers: [new BasemapLayer({

            copyright: ,

            type: ,

            url: "http://otile{s}.mqcdn.com/tiles/1.0.0/{type}/{z}/{x}/{y}.{ext}"

          })],

          id: "MapQuestOpen",

          title: "MapQuestOpen",

            thumbnailUrl:"http://otile4.mqcdn.com/tiles/1.0.0/map/6/15/24.jpg"

        });

 

 

        basemapGallery.add(mapquest);

Outcomes