diff --git a/src/components/Map/leafletMap.vue b/src/components/Map/leafletMap.vue index c2c2740..c2c7714 100644 --- a/src/components/Map/leafletMap.vue +++ b/src/components/Map/leafletMap.vue @@ -40,7 +40,7 @@ import 'leaflet/dist/leaflet.css' import { mapGetters } from 'vuex' import { merchantListPage } from '@/api/geoCoding/geoCoding' -import {getPartsTypeName} from "../../utils/constant"; +import { getPartsTypeName } from '@/utils/constant' const esri = require('esri-leaflet') diff --git a/src/components/Map/leafletMap.vue b/src/components/Map/leafletMap.vue index c2c2740..c2c7714 100644 --- a/src/components/Map/leafletMap.vue +++ b/src/components/Map/leafletMap.vue @@ -40,7 +40,7 @@ import 'leaflet/dist/leaflet.css' import { mapGetters } from 'vuex' import { merchantListPage } from '@/api/geoCoding/geoCoding' -import {getPartsTypeName} from "../../utils/constant"; +import { getPartsTypeName } from '@/utils/constant' const esri = require('esri-leaflet') diff --git a/src/router/modules/baseSource.js b/src/router/modules/baseSource.js index 62826d4..8f7f894 100644 --- a/src/router/modules/baseSource.js +++ b/src/router/modules/baseSource.js @@ -75,6 +75,12 @@ name: 'MapSearch', component: () => import('@/views/baseSource/mapSearch'), meta: { title: '地图查询', icon: '', permission: ['/mapSearch'], keepAlive: true } + }, + { + path: '/coordPicker', + name: 'CoordPicker', + component: () => import('@/views/baseSource/coordPicker'), + meta: { title: '坐标拾取', icon: '', permission: ['/coordPicker'], keepAlive: true } } ] }, { diff --git a/src/components/Map/leafletMap.vue b/src/components/Map/leafletMap.vue index c2c2740..c2c7714 100644 --- a/src/components/Map/leafletMap.vue +++ b/src/components/Map/leafletMap.vue @@ -40,7 +40,7 @@ import 'leaflet/dist/leaflet.css' import { mapGetters } from 'vuex' import { merchantListPage } from '@/api/geoCoding/geoCoding' -import {getPartsTypeName} from "../../utils/constant"; +import { getPartsTypeName } from '@/utils/constant' const esri = require('esri-leaflet') diff --git a/src/router/modules/baseSource.js b/src/router/modules/baseSource.js index 62826d4..8f7f894 100644 --- a/src/router/modules/baseSource.js +++ b/src/router/modules/baseSource.js @@ -75,6 +75,12 @@ name: 'MapSearch', component: () => import('@/views/baseSource/mapSearch'), meta: { title: '地图查询', icon: '', permission: ['/mapSearch'], keepAlive: true } + }, + { + path: '/coordPicker', + name: 'CoordPicker', + component: () => import('@/views/baseSource/coordPicker'), + meta: { title: '坐标拾取', icon: '', permission: ['/coordPicker'], keepAlive: true } } ] }, { diff --git a/src/views/baseSource/coordPicker.vue b/src/views/baseSource/coordPicker.vue new file mode 100644 index 0000000..91e8557 --- /dev/null +++ b/src/views/baseSource/coordPicker.vue @@ -0,0 +1,308 @@ + + + + + diff --git a/src/components/Map/leafletMap.vue b/src/components/Map/leafletMap.vue index c2c2740..c2c7714 100644 --- a/src/components/Map/leafletMap.vue +++ b/src/components/Map/leafletMap.vue @@ -40,7 +40,7 @@ import 'leaflet/dist/leaflet.css' import { mapGetters } from 'vuex' import { merchantListPage } from '@/api/geoCoding/geoCoding' -import {getPartsTypeName} from "../../utils/constant"; +import { getPartsTypeName } from '@/utils/constant' const esri = require('esri-leaflet') diff --git a/src/router/modules/baseSource.js b/src/router/modules/baseSource.js index 62826d4..8f7f894 100644 --- a/src/router/modules/baseSource.js +++ b/src/router/modules/baseSource.js @@ -75,6 +75,12 @@ name: 'MapSearch', component: () => import('@/views/baseSource/mapSearch'), meta: { title: '地图查询', icon: '', permission: ['/mapSearch'], keepAlive: true } + }, + { + path: '/coordPicker', + name: 'CoordPicker', + component: () => import('@/views/baseSource/coordPicker'), + meta: { title: '坐标拾取', icon: '', permission: ['/coordPicker'], keepAlive: true } } ] }, { diff --git a/src/views/baseSource/coordPicker.vue b/src/views/baseSource/coordPicker.vue new file mode 100644 index 0000000..91e8557 --- /dev/null +++ b/src/views/baseSource/coordPicker.vue @@ -0,0 +1,308 @@ + + + + + diff --git a/static/project.config.json b/static/project.config.json index 028dce7..d5c6034 100644 --- a/static/project.config.json +++ b/static/project.config.json @@ -5,6 +5,7 @@ "city":"崇仁县", "mapUrl":"https://t0.tianditu.gov.cn/vec_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=vec&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=216ee92889e17ab1b083fae665d522b8", "labelUrl":"https://t0.tianditu.gov.cn/cva_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cva&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=216ee92889e17ab1b083fae665d522b8", + "satelliteUrl":"http://111.198.10.15:20602/dom005/{z}/{x}/{y}.png", "center":[27.755, 116.08], "zoom":15, "partsLayer":[