Google maps AS3 API:如何移动位置控件?

时间:2012-11-02 21:36:29

标签: google-maps controls move

如何使用AS3 api在flash google地图中移动positionControl?

1 个答案:

答案 0 :(得分:0)

map.clearControls();

var positionControlOptions:PositionControlOptions = new PositionControlOptions({buttonSize: new Point(17, 17),buttonStyle: new ButtonStyle({}),buttonSpacing: new Point(4, 4),position: new ControlPosition(ControlPosition.ANCHOR_BOTTOM_LEFT, 10,30)});

map.addControl(new PositionControl(positionControlOptions));