2013-04-23 71 views
0

我在谷歌地图上有一个圆圈,我有一个增加半径的功能。如何更新地图上的圈子?更新谷歌地图上的形状

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

使用setRadius - 方法,而不是设置半径属性:

this.markerBoundary.setRadius(rd); 
+0

谢谢!这工作。 – Malcr001 2013-04-23 15:42:22