| | |
| | | |
| | | // service主机配置 |
| | | const APP_GIS_HOST = 'http://xearth.cn:6299' |
| | | const APP_GIS_HOST_PIPELINE = 'http://xearth.cn:6289' |
| | | // const APP_GIS_HOST_PIPELINE = 'http://xearth.cn:6289' |
| | | |
| | | // 自定义主机配置 |
| | | const BLUEMAP_HOST = APP_GIS_HOST // 公司发布的地图服务,用于测试的地址 |
| | |
| | | attributionControl: false, |
| | | editable: true |
| | | } |
| | | |
| | | const mapConfig = { |
| | | IsLoadMapByToken: true, // 是否通过token加载地图 |
| | | showBaseMapType: 1, // 1显示天地图,2显示arcgis地图 |
| | |
| | | url: SINOPEC_GIS_HOST + '/OneMapServer/rest/services/base-map-image-globe/MapServer' |
| | | } |
| | | ], |
| | | |
| | | ServiceLayers: [ |
| | | InitLoad: [ |
| | | { |
| | | code: 'guojie', |
| | | name: '国界', |
| | |
| | | option: { |
| | | zoomOffset: 1 |
| | | } |
| | | }, |
| | | } |
| | | ], |
| | | ServiceLayers: [ |
| | | { |
| | | code: 'pipeline', |
| | | name: '管网数据', |
| | |
| | | icon_deactived: '', |
| | | type: 'wms', |
| | | // url: APP_GIS_HOST_PIPELINE + '/server/ogcserver/PipeLineTest/wms?version=1.1.1', |
| | | url: APP_GIS_HOST_PIPELINE + '/server/ogcserver/PipeLine/wms?version=1.1.1', |
| | | url: 'http://localhost:8080/wms?version=1.1.1', |
| | | // url: APP_GIS_HOST_PIPELINE + '/server/ogcserver/PipeLine/wms?version=1.1.1', |
| | | inLegend: true, |
| | | checked: true, |
| | | option: { |
| | |
| | | name: '雨水线', |
| | | sname: '雨水', |
| | | checked: true, // 默认选中状态 |
| | | filter: {} |
| | | filter: {}, |
| | | childLayer: 'fsss,hbss' // 关联PointLayers |
| | | }, |
| | | { |
| | | code: 'oilline', |
| | | name: '含油污水线', |
| | | sname: '含油污水', |
| | | checked: true, // 默认选中状态 |
| | | filter: {} |
| | | filter: {}, |
| | | childLayer: 'fsss,hbss' // 关联PointLayers |
| | | }, |
| | | { |
| | | code: 'saltline', |
| | | name: '含盐污水线', |
| | | sname: '含盐污水', |
| | | checked: true, // 默认选中状态 |
| | | filter: {} |
| | | filter: {}, |
| | | childLayer: 'fsss,hbss' // 关联PointLayers |
| | | }, |
| | | { |
| | | code: 'alkaliline', |
| | | name: '含碱污水线', |
| | | sname: '含碱污水', |
| | | checked: true, // 默认选中状态 |
| | | filter: {} |
| | | filter: {}, |
| | | childLayer: 'fsss,hbss' // 关联PointLayers |
| | | }, |
| | | { |
| | | code: 'outlet', |
| | | name: '排口', |
| | | sname: '排口', |
| | | checked: true, // 默认选中状态 |
| | | filter: {} |
| | | filter: {}, |
| | | childLayer: 'pk' // 关联PointLayers |
| | | }, |
| | | { |
| | | code: 'accidentline', |
| | | name: '事故水线', |
| | | sname: '事故水', |
| | | checked: true, // 默认选中状态 |
| | | filter: {} |
| | | filter: {}, |
| | | childLayer: 'fsss,hbss' // 关联PointLayers |
| | | }, |
| | | { |
| | | code: 'loopline', |
| | | name: '循环水线', |
| | | sname: '循环水', |
| | | checked: true, // 默认选中状态 |
| | | filter: {} |
| | | filter: {}, |
| | | childLayer: 'fsss,hbss' // 关联PointLayers |
| | | }, |
| | | { |
| | | code: 'purifyline', |
| | | name: '净化水线', |
| | | sname: '净化水', |
| | | checked: true, // 默认选中状态 |
| | | filter: {} |
| | | filter: {}, |
| | | childLayer: 'fsss,hbss' // 关联PointLayers |
| | | }, |
| | | { |
| | | code: 'lifeline', |
| | | name: '生活污水', |
| | | sname: '生活污水', |
| | | checked: true, // 默认选中状态 |
| | | filter: {} |
| | | filter: {}, |
| | | childLayer: 'fsss,hbss' // 关联PointLayers |
| | | }, |
| | | { |
| | | code: 'areainfo', |
| | | name: '区域信息', |
| | | sname: '区域信息', |
| | | checked: true, // 默认选中状态 |
| | | filter: {} |
| | | filter: {}, |
| | | childLayer: 'qyxx' // 关联PointLayers |
| | | } |
| | | ] |
| | | } |
| | | ], |
| | | filtersGroup: [ |
| | | PointLayers: [ |
| | | { |
| | | code: 'fsss', |
| | | name: '附属设施', |
| | |
| | | sname: '管段', |
| | | checked: true, // 默认选中状态 |
| | | geom: GEOM_POINT |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | } |