使用高德地图开发需要注意的一些点

一,使用Autocomplete和PlaceSearch查询出来的点如何清空?

  

if(this.placeSearch){
   this.placeSearch.clear();
   if(this.placeSearch.render){
       this.placeSearch.render.markerList.clear();
   }
}

 

this.placeSearch是一个创建的PlaceSearch对象

 

猜你喜欢

转载自www.cnblogs.com/zifayin/p/9229324.html