|
|
@@ -2,16 +2,13 @@ import { get, post } from '@/utils/request'
|
|
|
|
|
|
const mapAPI = {
|
|
|
mapApi: '/api/geo/map',
|
|
|
+ chartmapApi: '/api/geo/chartmap',
|
|
|
photoMarks: '/api/geo/photo/marks',
|
|
|
photoMarksArea: '/api/geo/photo/marks_area',
|
|
|
- photoMarksNearby: '/api/geo/photo/marks_nearby',
|
|
|
- cascadeApi: '/api/geo/map/cascade',
|
|
|
- photoMarkInfo: '/api/geo/photo/mark/info',
|
|
|
- geoPathApi: '/api/geo/map/path',
|
|
|
- chartMapGeojsonApi: '/api/geo/map/geojson'
|
|
|
+ photoMarkInfo: '/api/geo/photo/mark/info'
|
|
|
}
|
|
|
|
|
|
-export function saveBatchMarks(jsonData) {
|
|
|
+export function addsMapMarks(jsonData) {
|
|
|
return post(mapAPI.mapApi + '/marks', jsonData)
|
|
|
}
|
|
|
|
|
|
@@ -27,12 +24,8 @@ export function getPhotoMarksArea(areaCode) {
|
|
|
return get(mapAPI.photoMarksArea + '?areaCode=' + areaCode)
|
|
|
}
|
|
|
|
|
|
-export function getPhotoMarksNearby(distance) {
|
|
|
- return get(mapAPI.photoMarksNearby + '?distance=' + distance)
|
|
|
-}
|
|
|
-
|
|
|
-export function getAreaCascadeOptions() {
|
|
|
- return get(mapAPI.cascadeApi)
|
|
|
+export function getNearbyMarks(distance) {
|
|
|
+ return get(mapAPI.mapApi + '/nearby?distance=' + distance)
|
|
|
}
|
|
|
|
|
|
export function getMarkerInfo(id) {
|
|
|
@@ -40,13 +33,17 @@ export function getMarkerInfo(id) {
|
|
|
}
|
|
|
|
|
|
export function addGeoPath(data) {
|
|
|
- return post(mapAPI.geoPathApi, data)
|
|
|
+ return post(mapAPI.mapApi + '/path', data)
|
|
|
}
|
|
|
|
|
|
export function getGeoPath(queryParam) {
|
|
|
- return get(mapAPI.geoPathApi, queryParam)
|
|
|
+ return get(mapAPI.mapApi + '/path', queryParam)
|
|
|
}
|
|
|
|
|
|
export function getChartMapGeojson(areaCode) {
|
|
|
- return get(mapAPI.chartMapGeojsonApi + '?areaCode=' + areaCode)
|
|
|
+ return get(mapAPI.chartmapApi + '/geojson?areaCode=' + areaCode)
|
|
|
+}
|
|
|
+
|
|
|
+export function getAreaCascadeOptions() {
|
|
|
+ return get(mapAPI.chartmapApi + '/cascade')
|
|
|
}
|