0

Googleマップに円があり、半径を大きくする機能があります。マップ上のサークルを更新するにはどうすればよいですか?

    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代わりに -method を使用して、radius-property を設定します。

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