Select to view content in your preferred language

Current basemap in custom widget

2102
10
01-21-2020 04:55 AM
MatejCunder1
Occasional Contributor

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
executeQuery();
//executeQuerySecond();
});

// Add the campus basemap
var campusMap = new esri.layers.ArcGISTiledMapServiceLayer('https://gis.arso.gov.si/arcgis/rest/services/Topografske_karte_ARSO_nova/MapServer');
map.addLayer(campusMap);

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

0 Kudos
10 Replies
MatejCunder1
Occasional Contributor

Rober,

thank you for your time and effort. As I said, I will notify you when I get the widget to work.

BR,

Matej

0 Kudos