地图
爱吃猫の渔
一个奋斗逼
展开
-
vue搭建地图 使用leaflet.js和esri-leaflet构建(esri-leaflet轻量级的地图js框架)
vue搭建地图 使用leaflet.js和esri-leaflet构建原创 2021-12-02 10:46:30 · 2233 阅读 · 0 评论 -
vue 使用leaflet 引入天地图实现搜索跳转位置(二)
//HTML <div class="search"> <el-input v-model="SearchValue" placeholder="可根据目的地进行查找" prefix-icon="el-icon-search" @input="input()" /> <div class="searchItem" v-show="searchShow"> <ul> <原创 2021-11-03 15:01:39 · 2222 阅读 · 0 评论 -
vue 使用leaflet 加载地图服务 (可切换天地图 影像地图)(一)
// 下载 npm install leaflet // 引入 main.jsimport L from "leaflet";import "leaflet/dist/leaflet.css";// HTML<div id="map"></div> created() { let _that = this; //面信息初始化 _that.normal = new L.layerGroup(); _that.factoryLandPolygo原创 2021-11-03 14:41:02 · 4817 阅读 · 0 评论 -
vue使用vue-amap让标注始终位于屏幕中心点
// 使用npm下载npm install vue-amap --save // 新建amap.js 且输入下面代码import Vue from 'vue';import VueAMap from 'vue-amap';Vue.use(VueAMap);// 初始化vue-amapif (!Vue.prototype.$isServer) { VueAMap.initAMapApiLoader({ // 高德的key key: '', // 插件集合 p原创 2021-11-01 14:04:54 · 1939 阅读 · 0 评论