我在谷歌地图上有一个圆圈,我有一个增加半径的功能。如何更新地图上的圆圈?
this.markerBoundary.radius = rd; //New radius assigned
//I need to update the shape here but setMap does not work
this.markerBoundary.setMap(this.gmap);
this.bounds = this.markerBoundary.getBounds();
答案 0 :(得分:0)
使用setRadius
- 方法来设置radius-property:
this.markerBoundary.setRadius(rd);