2013-04-23 46 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