this.$refs.map.$amap.setFitView(markers)
获取实例,$amap 为 el-map 的 vid,没错,vid 获取方式就是这样
markers 为 Amap.Marker 构造函数的实例数组。
转载于:https://www.cnblogs.com/ZweiZhao/p/10025868.html
this.$refs.map.$amap.setFitView(markers)
获取实例,$amap 为 el-map 的 vid,没错,vid 获取方式就是这样
markers 为 Amap.Marker 构造函数的实例数组。
转载于:https://www.cnblogs.com/ZweiZhao/p/10025868.html