AnsweredAssumed Answered

How to change Map in Overview Map ?

Question asked by Mayur_Dodiya on May 1, 2018

Hi,

I am working on story map journal customization.

I added basemap gallery widget in story map and its working fine.

I would like to change map in Overview based on selected map from Basemap gallery.

How do I get Overview Map in Story Map same like map i.e. app.map and you get map object.

Below is my code i tried its working but adding new overview map not the existed one.

 

basemapGallery.on("selection-change", lang.hitch(this, function () {
var basemap = basemapGallery.getSelected();
overviewMapDijit.destroy();
overviewMapDijit = new OverviewMap({
map: map,
visible: true,
//attachTo: "bottom-left",
height: 200,
width:200
});
overviewMapDijit.startup();
}));

overviewMapDijit = new OverviewMap({
map: map,
visible: true,
//attachTo: "bottom-left",
height: 200,
width:200
});
overviewMapDijit.startup();

Thank you so much.!

Outcomes