AnsweredAssumed Answered

Current basemap in custom widget

Question asked by matej.cunder on Jan 21, 2020
Latest reply on Jan 24, 2020 by matej.cunder

Hello everyone,


I have a custom search widget, that needs basemap in order to work. At the moment the widget is set to work with the basemap defined with custom map added to the map:

map = new esri.Map("map");

dojo.connect(map, "onLoad", function() {
//populate dropdown

// Add the campus basemap
var campusMap = new esri.layers.ArcGISTiledMapServiceLayer('');


I want the widget to add current basemap, presen in the app, instead of the defined campusMap