AnsweredAssumed Answered

Tried to register widget with id==map_infowindow but that id is already registered

Question asked by jimmiraza on Apr 2, 2015
Latest reply on Apr 6, 2015 by Yusufamro

I am geting error [Tried to register widget with id==mapQatarDiv_infowindow but that id is already registered ] when i have clicked map button multiple time

i have destroy map before create new map like below



try {

           if (mapLoaded) {



       } catch (e) {

           alert("destroy"+ e.message)


 = new esri.Map("mapQatarDiv", {

           extent: startExtent,

           sliderStyle: "large",

           logo: false



       currentMapLayer = new esri.layers.ArcGISTiledMapServiceLayer(url_Saltelitte_Layer, {

           id: "satellite"