Newer
Older
dcms_front / src / components / Map / ArcGISConfig.js
zhangyingjie on 16 Mar 2021 864 bytes arcgis地图组件修改
export const mapConfig = {
  // apiUrl: 'http://192.168.8.205/arcgis_js_api/library/4.12/init.js', // 暂时使用管网提供的api,实际部署时建议离线部署一套
  apiUrl: 'https://js.arcgis.com/4.13/',
  mapIp: '223.84.218.107', // 服务ip
  mapPort: '6080', // 服务端口
  // serverBase: 'http://192.168.8.205:6080/arcgis/rest/services/', // 服务地址前缀
  serverBase: 'http://111.198.10.15:13002/arcgis/rest/services/',
  mapCenter: '[116.597,28.24]' // 地图中心点
}

export const serverConfig = {
  mapUrlBase: mapConfig.serverBase + 'cr_dt/MapServer', // 底图服务地址
  mapUrlBj: mapConfig.serverBase + 'cr_bj/FeatureServer', // 部件服务地址
  mapUrlBjfc: mapConfig.serverBase + 'cr_bjfc/MapServer', // 部件分层服务地址
  mapUrlBjEdit: mapConfig.serverBase + 'cr_bj/FeatureServer' // 可编辑的部件图层
}