| | |
| | | map = new AMap.Map(elementId, { |
| | | // mapStyle: 'amap://styles/e1e78509de64ddcd2efb4cb34c6fae2a', |
| | | features: ['bg', 'road'], |
| | | pitch: 30, // 地图俯仰角度,有效范围 0 度- 83 度 |
| | | pitch: 0, // 地图俯仰角度,有效范围 0 度- 83 度 |
| | | viewMode: '3D', // 地图模式 |
| | | resizeEnable: true, |
| | | center: [121.6039283, 31.25295567], |
| | | zooms: [2, 26], |
| | | zoom: 14, |
| | | zoom: 11, |
| | | }) |
| | | // map = new AMap.Map(elementId); |
| | | |
| | | // 添加卫星地图 |
| | | satellite = new AMap.TileLayer.Satellite() |
| | | const roadNet = new AMap.TileLayer.RoadNet() |
| | | // satellite.hide() |
| | | map.add([satellite, roadNet]) |
| | | // const roadNet = new AMap.TileLayer.RoadNet() |
| | | satellite.hide() |
| | | map.add([satellite]) |
| | | |
| | | // _initMouseTool(); |
| | | // _init3DLayer(); |
| | |
| | | }) |
| | | } |
| | | |
| | | export { createMap, destroyMap, onMapMounted, map, AMap, mouseTool, object3Dlayer, isDragging } |
| | | export { |
| | | createMap, |
| | | destroyMap, |
| | | onMapMounted, |
| | | map, |
| | | AMap, |
| | | satellite, |
| | | mouseTool, |
| | | object3Dlayer, |
| | | isDragging, |
| | | } |