if (map.getZoom() > 13) {
visFlag = true;
toggle = new BasemapToggle({
map: map,
visible: true,
basemap: "hybrid",
basemaps:
{
"hybrid": {
"title": "hhh",
"thumbnailUrl": "../Content/images/satellite.png"
},
"topo": {
"title": "fff",
"thumbnailUrl": "../Content/images/topo.png"
}
}
}, "BasemapToggle");
if (toggle) {
console.log("i m inside Visible 13");
toggle.startup();
}
}
else {
if (toggle) {
toggle.destroy();
console.log("destroy")
}
}
}
dear all
i want to change the toggle map visibility on extent change.but only one time this happened.But one time toggle map appear and disappear.it not comes second time please help.other thing i also want to display title of currently selected map