Select to view content in your preferred language

How to change Map in Overview Map ?

465
0
05-01-2018 11:13 PM
MayurDodiya
Frequent Contributor

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.!

0 Kudos
0 Replies