一,使用Autocomplete和PlaceSearch查询出来的点如何清空?
if(this.placeSearch){ this.placeSearch.clear(); if(this.placeSearch.render){ this.placeSearch.render.markerList.clear(); } }
this.placeSearch是一个创建的PlaceSearch对象
一,使用Autocomplete和PlaceSearch查询出来的点如何清空?
if(this.placeSearch){ this.placeSearch.clear(); if(this.placeSearch.render){ this.placeSearch.render.markerList.clear(); } }
this.placeSearch是一个创建的PlaceSearch对象