随笔分类 -  前端 || Vue----【Vue2.0 + leaflet】

vue2.0leaflet
摘要:安装leaflet cnpm install leaflet@~1.4.0 --save // 在main.js 中设置如下 //引入样式文件 import 'leaflet/dist/leaflet.css' <template> <div id="map"> </div> </template> 阅读全文
posted @ 2019-05-04 22:15 阴翳公子 阅读(3732) 评论(1) 推荐(2)
摘要:参考:https://www.jianshu.com/p/3ab216fa185c axios快速使用 示例demo Vue使用Axios实现http请求以及解决跨域问题 引入qs 库 cnpm install qs vue2.0下axios实现跨域踩的坑 VUE axios 跨域问题 No 'Ac 阅读全文
posted @ 2019-04-30 15:44 阴翳公子 阅读(667) 评论(0) 推荐(0)
摘要:地址1: 链接: https://pan.baidu.com/s/1uEzM990A-W-fl23ref2zww 提取码: rkpt 复制这段内容后打开百度网盘手机App,操作更方便哦 地址2:https://pan.baidu.com/s/1eSoir1C 阅读全文
posted @ 2019-04-30 15:10 阴翳公子 阅读(472) 评论(0) 推荐(0)
摘要:npm安装:cnpm install --save vuex 安装完:cnpm install main.js引入: import Vuex from 'vuex' Vue.use(Vuex); Vue.use(Vuex); 阅读全文
posted @ 2019-04-29 14:41 阴翳公子 阅读(91) 评论(0) 推荐(0)
摘要:安装 vue.js devtools vue官方中文文档:http://www.uihtm.com/vue/v2/guide/index.html# 安装 vue.js devtools 前提是Google浏览器已经安装了谷歌访问助手,可以正常访问到谷歌商店,没有安装的话,可以去安装下谷歌访问助手, 阅读全文
posted @ 2019-04-26 09:39 阴翳公子 阅读(5424) 评论(1) 推荐(1)
摘要:leaflet.draw的参考文档:http://leaflet.github.io/Leaflet.draw/docs/leaflet-draw-latest.html 这个网址不稳定,多刷新几遍就出来了 leaflet.draw源码:https://github.com/Leaflet/Leaf 阅读全文
posted @ 2019-04-25 14:21 阴翳公子 阅读(3690) 评论(0) 推荐(1)
摘要:leaflet.toolbar.js 参考:https://www.javascriptcn.com/read-38464.html 阅读全文
posted @ 2019-04-25 13:39 阴翳公子 阅读(485) 评论(0) 推荐(0)
摘要:参考:https://www.cnblogs.com/gispathfinder/p/9535685.html Vue2leaflet安装后,默认自带的地图URL如下 调用国内地图的URL: 高德:http://webrd01.is.autonavi.com/appmaptile?lang=zh_c 阅读全文
posted @ 2019-04-23 15:52 阴翳公子 阅读(1873) 评论(0) 推荐(0)
摘要:首先下载该demo 地址:https://github.com/KoRiGaN/Vue2Leaflet 下载后可以运行里面的例子,在examples文件夹内,该文件夹本身就是一个完整的项目 然后cmd到该路径, cnpm install 报错如下 解决方法:cnpm install eslint@^ 阅读全文
posted @ 2019-04-20 17:49 阴翳公子 阅读(648) 评论(0) 推荐(0)
摘要:安装Vue脚手架的时候 指令:npm install vue-cli -g 报了一个警告:如下 npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen) 阅读全文
posted @ 2019-04-20 13:08 阴翳公子 阅读(573) 评论(0) 推荐(0)
摘要:leaflet实用插件整理: https://www.giserdqy.com/webgis/leaflet/4920/leaflet%E5%AE%9E%E7%94%A8%E6%8F%92%E4%BB%B6%E6%95%B4%E7%90%86/#1osmgooglebaidugaodetiandit 阅读全文
posted @ 2019-04-19 16:00 阴翳公子 阅读(901) 评论(0) 推荐(0)
摘要:参考:https://blog.csdn.net/Joshua_HIT/article/details/72860171 vue2leaflet的demo:https://github.com/KoRiGaN/Vue2Leaflet 下载后可以运行里面的例子,在examples文件夹内,该文件夹本身 阅读全文
posted @ 2019-04-18 16:42 阴翳公子 阅读(1609) 评论(0) 推荐(0)
摘要:vue2leaflet 在线实验 参考:https://korigan.github.io/Vue2Leaflet/#/components/l-circle/ 设置多个同类型组件在地图上 阅读全文
posted @ 2019-04-15 18:01 阴翳公子 阅读(291) 评论(0) 推荐(0)
摘要:Vue搭建项目 搭建VUe项目之前需要先安装脚手架,不然项目搭建完会有警告、 最后稍等一定的时间,运行结果如下: 出现上述提示,是因为我们没有先安装vue-cli,接下来,我们安装vue-cli 安装vue-cli 说明:安装vue脚手架 vue-cil是vue的脚手架工具。其模板可以通过 vuej 阅读全文
posted @ 2019-04-11 10:25 阴翳公子 阅读(244) 评论(0) 推荐(0)
摘要:github源码在此,记得点星:https://github.com/brandonxiang/vueleaflet 参考文档:https://korigan.github.io/Vue2Leaflet/#/?id=breaking-changes-from-v0xx-to-v1xx 参考例子:ht 阅读全文
posted @ 2019-04-10 15:16 阴翳公子 阅读(391) 评论(0) 推荐(0)