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();
4

1 回答 1

0

使用setRadius- 方法来设置半径属性:

this.markerBoundary.setRadius(rd);
于 2013-04-23T15:15:58.197 回答