dataease-dm/frontend/src/api/map/map.js
2021-08-03 16:05:05 +08:00

26 lines
483 B
JavaScript

import request from '@/utils/request'
export const areaMapping = () => {
return request({
url: '/api/map/areaEntitys/0',
method: 'get',
loading: true
})
}
// export function geoJson(areaCode) {
// return request({
// url: '/api/map/resourceFull/' + areaCode,
// method: 'get',
// loading: true
// })
// }
export function geoJson(areaCode) {
return request({
url: '/geo/' + areaCode + '_full.json',
method: 'get',
loading: true
})
}