AnsweredAssumed Answered

change basemapLayer in overviewMapDijit

Question asked by vincent_choffrut on Oct 19, 2015
Latest reply on Oct 19, 2015 by jskinner-esristaff

hello everyone,

I'm trying to change the basemaplayer in a overviewmapDijit...

does anyone has a clue why the following code fragment doesn't work ? 

THANX A LOT in advance!

 

var BM_OM = new ArcGISDynamicMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer",{

useMapImage: true

});

 

BM_OM.on("load", function(evt){

console.log('BM loaded');

var overviewMapDijit = new OverviewMap({

map: map,

baseLayer: 'BM_OM'

}, "overviewMapDiv");

overviewMapDijit.startup();   

});

Outcomes