餐饮油烟智能监测与监管一体化平台
feiyu02
6 天以前 ccc970e575ef3f3e5c67af8da210263f4ac549f9
src/utils/map/index.js
@@ -67,20 +67,20 @@
  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();
@@ -112,4 +112,14 @@
  })
}
export { createMap, destroyMap, onMapMounted, map, AMap, mouseTool, object3Dlayer, isDragging }
export {
  createMap,
  destroyMap,
  onMapMounted,
  map,
  AMap,
  satellite,
  mouseTool,
  object3Dlayer,
  isDragging,
}