vue-map笔记(view:2888)

amap-vue
https://elemefe.github.io/vue-amap/
参考文档:https://segmentfault.com/a/1190000000514149

1.:vid="'amap-vue'",此处双引号内需要有单引号,否则控制台会报
[Vue warn]: Property or method "amap" is not defined on the instance but referenced during render.
[Vue warn]: Property or method "vue" is not defined on the instance but referenced during render.

2.zoom参数为数字,设置字符串会导致地图加载一片黄色

vue-baidu-map
https://dafrok.github.io/vue-baidu-map/