| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- import { get, post } from '@/utils/request'
- const mapAPI = {
- photoMarks: '/api/geo/photo/marks',
- photoMarksArea: '/api/geo/photo/marks_area',
- photoMarksNearby: '/api/geo/photo/marks_nearby',
- cupMapApi: '/api/geo/map/cup',
- cascadeApi: '/api/geo/map/cascade',
- photoMarkInfo: '/api/geo/photo/mark/info',
- photoItemApi: '/api/geo/photo/item',
- addPositionAPi: '/api/geo/map/position',
- addMyPositionAPi: '/api/geo/map/my_position',
- addPathAPi: '/api/geo/map/trail',
- mapMarks: '/api/geo/map/marks',
- trailPathApi: '/api/geo/map/trail',
- chartMapAreaApi: '/api/geo/chartmap/area',
- chartMapGeojsonApi: '/api/geo/chartmap/geojson'
- }
- export function getMapMarks() {
- return get(mapAPI.mapMarks)
- }
- export function getPhotoMarks(areaCode) {
- return get(mapAPI.photoMarks + '?type=' + areaCode)
- }
- export function getPhotoMarksArea(areaCode) {
- return get(mapAPI.photoMarksArea + '?areaCode=' + areaCode)
- }
- export function getPhotoMarksNearby(distance) {
- return get(mapAPI.photoMarksNearby + '?distance=' + distance)
- }
- export function getCupMap() {
- return get(mapAPI.cupMapApi)
- }
- export function getAreaCascadeOptions() {
- return get(mapAPI.cascadeApi)
- }
- export function getMarkerInfo(id) {
- return get(mapAPI.photoMarkInfo + '?id=' + id)
- }
- export function getPhotoItems() {
- return get(mapAPI.photoItemApi)
- }
- export function addGeoPosition(data) {
- return post(mapAPI.addPositionAPi, data)
- }
- export function addMyPosition(data) {
- return post(mapAPI.addMyPositionAPi, data)
- }
- export function addPath(data) {
- return post(mapAPI.addPathAPi, data)
- }
- export function getGeoPoint() {
- return get(mapAPI.trailPathApi + '/' + 1)
- }
- export function getChartMapArea() {
- return get(mapAPI.chartMapAreaApi)
- }
- export function getChartMapGeojson(areaCode) {
- return get(mapAPI.chartMapGeojsonApi + '?areaCode=' + areaCode)
- }
|