解决在IE中高德地图加载不出来/只有Logo没有地图的解决方案

 

在created中调用下面函数

clearMapstore() {
          localStorage.removeItem("_AMap_vectorlayer");
          localStorage.removeItem("_AMap_wgl");
          localStorage.removeItem("_AMap_sync");
          localStorage.removeItem("_AMap_raster");
          localStorage.removeItem("_AMap_overlay");
          localStorage.removeItem("_AMap_mouse");
          localStorage.removeItem("_AMap_AMap.ToolBar");
          localStorage.removeItem("_AMap_AMap.Scale");
          localStorage.removeItem("_AMap_AMap.RangingTool");
          localStorage.removeItem("_AMap_AMap.PolyEditor");
          localStorage.removeItem("_AMap_AMap.PlaceSearch");
          localStorage.removeItem("_AMap_AMap.OverView");
          localStorage.removeItem("_AMap_AMap.MouseTool");
          localStorage.removeItem("_AMap_AMap.MarkerClusterer");
          localStorage.removeItem("_AMap_AMap.MapType");
          localStorage.removeItem("_AMap_AMap.Geolocation");
          localStorage.removeItem("_AMap_AMap.CitySearch");
          localStorage.removeItem("_AMap_AMap.CircleEditor");
          localStorage.removeItem("_AMap_AMap.Autocomplete");
          localStorage.removeItem("_AMap_AMap.IndoorMap3D");
          localStorage.removeItem("_AMap_Map3D");
          localStorage.removeItem("_AMap_labelcanvas");
          localStorage.removeItem("_AMap_labelDir");
          localStorage.removeItem("_AMap_data.tileKeys");
          localStorage.removeItem("_AMap_AMap.CustomLayer");
          localStorage.removeItem("_AMap_AMap.Geocoder");
          localStorage.removeItem("_AMap_AMap.CustomLayer");
          localStorage.removeItem("_AMap_AMap.IndoorMap");
          localStorage.removeItem("_AMap_anole");
          localStorage.removeItem("_AMap_cmng");
          localStorage.removeItem("_AMap_cvector");
 }

 

 

 

作者:微微一笑绝绝子
出处:https://www.cnblogs.com/wwyxjjz/p/15183740.html
本博客文章均为作者原创,转载请注明作者和原文链接。

 

posted @ 2021-08-25 10:11  微微一笑绝绝子  阅读(744)  评论(0编辑  收藏  举报