AnsweredAssumed Answered

How to remove the 2d map from the dom

Question asked by aweeg19 on Mar 22, 2017
Latest reply on Jan 17, 2018 by jmullen_pasco

the way our UI works the map can be opened or closed depending on what the user is doing, when i remove the map from the dom it seems to still be holding on to memory, it just keeps going up and up until the browser becomes unresponsive. is there a better way to do this? this is my current code 

 


this.$mainDiv.find(".arc-div").remove();
this.ArcView.map = null;
this.ArcMap.removeAll();
this.ArcMap = null;
this.ArcView = null;

 

it seems like the tiles are still in memory they get orphaned so it never gets cleaned up. any help would be awesome! thanks! 

Outcomes