| | |
| | | satellite.hide(); |
| | | map.add([satellite]); |
| | | |
| | | const rPx = 100; |
| | | const tPx = 110; |
| | | // const rPx = 100; |
| | | // const tPx = 110; |
| | | // 添加地图控制工具 |
| | | map.addControl( |
| | | new AMap.ControlBar({ |
| | | position: { |
| | | right: rPx + 'px', |
| | | top: tPx + 'px' |
| | | } |
| | | }) |
| | | ); |
| | | map.addControl( |
| | | new AMap.ToolBar({ |
| | | position: { |
| | | right: rPx + 30 + 'px', |
| | | top: tPx + 90 + 'px' |
| | | } |
| | | }) |
| | | ); |
| | | // map.addControl( |
| | | // new AMap.ControlBar({ |
| | | // position: { |
| | | // right: rPx + 'px', |
| | | // top: tPx + 'px' |
| | | // } |
| | | // }) |
| | | // ); |
| | | // map.addControl( |
| | | // new AMap.ToolBar({ |
| | | // position: { |
| | | // right: rPx + 30 + 'px', |
| | | // top: tPx + 90 + 'px' |
| | | // } |
| | | // }) |
| | | // ); |
| | | |
| | | // |
| | | mouseTool = new AMap.MouseTool(map); |