Closed 0418wangweijie closed 3 years ago
import VueAMap from 'vue-amap' import { AMapManager } from 'vue-amap' const amapManager = new AMapManager() Vue.use(VueAMap) VueAMap.initAMapApiLoader({ key: '467d720a723dd21df7415338cbaf0c6a', plugin: ['AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType'], uiVersion: '1.0.11' // 版本号 })
这一种方法引用的比例尺的控件应该怎样显示呢,现在出来的地图中没有比例尺
已经解决了,自己没看好文档
import VueAMap from 'vue-amap' import { AMapManager } from 'vue-amap' const amapManager = new AMapManager() Vue.use(VueAMap) VueAMap.initAMapApiLoader({ key: '467d720a723dd21df7415338cbaf0c6a', plugin: ['AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType'], uiVersion: '1.0.11' // 版本号 })
这一种方法引用的比例尺的控件应该怎样显示呢,现在出来的地图中没有比例尺