Newer
Older
CloudBrainNew / src / api / geojson.js
StephanieGitHub on 4 Feb 2021 1 KB first commit
import request from '@/utils/request'
import config from '@/utils/baseConfig'
// 资源环境接口

// 查询项目建设/项目管理
export function fetchGeojson (city) {
  return request({
    baseURL: '',
    url: '/static/mapjson/' + city + '.json',
    method: 'get'
  })
}

export function fetchBoundary () {
  return request({
    baseURL: config.jingyiService,
    url: 'services/resource/singleSearch/B-DZ-003',
    params: {
      'F-Auth-Key': 'XPR4MHEV17'
    },
    data: {
      'areaName': '蓉江新区'
    },
    method: 'post'
  })
}

// 乡镇级行政区划
export function fetchAreaBoundary () {
  return request({
    baseURL: config.jingyiService,
    url: 'services/geoserver/gz-shp/ows?service=WFS&request=GetFeature&maxFeatures=20&outputFormat=application/json&typeName=gz-shp:A_JJYZQ_XZJXZQ_PG_1000',
    params: {
      'F-Auth-Key': '46EBBN247N'
    },
    method: 'post'
  })
}

// 道路责任网格
export function fetchRoadResponse () {
  return request({
    baseURL: config.jingyiService,
    url: 'services/geoserver/gz-shp/ows?service=WFS&request=GetFeature&maxFeatures=20&outputFormat=application/json&typeName=gz-shp:A_DLZRWG',
    params: {
      'F-Auth-Key': '4E25782HZ6'
    },
    method: 'get'
  })
}