New file |
| | |
| | | import * as L from 'leaflet' |
| | | |
| | | const APP_GIS_HOST_2 = 'http://xearth.cn:6230' |
| | | const myRenderer = L.canvas()// 需要使用画布渲染的使用 renderer: myRenderer 作为参数 |
| | | export const LayerSewers = { |
| | | code: 'pipeline', |
| | | name: '管网数据', |
| | | icon_actived: '', |
| | | icon_deactived: '', |
| | | type: 'geojson', |
| | | // url: APP_GIS_HOST_PIPELINE + '/server/ogcserver/PipeLineTest/wms?version=1.1.1', |
| | | url: APP_GIS_HOST_2 + '/layer/findLayer?layerName=pipeline', |
| | | inLegend: true, |
| | | checked: true, |
| | | option: { |
| | | styles: { |
| | | fill: true, |
| | | weight: 2, |
| | | fillColor: '#06cccc', |
| | | color: '#06cccc', |
| | | fillOpacity: 0.2, |
| | | opacity: 0.8 |
| | | // dashArray:'10,4', |
| | | // dashSpeed:-10, |
| | | }, |
| | | renderer: myRenderer |
| | | |
| | | }, |
| | | layers: [ |
| | | { |
| | | code: 'rainline', |
| | | name: '雨水线', |
| | | sname: '雨水', |
| | | checked: true, // 默认选中状态 |
| | | filter: {}, |
| | | childLayer: 'fsss,hbss' // 关联PointLayers |
| | | }, |
| | | { |
| | | code: 'oilline', |
| | | name: '含油污水线', |
| | | sname: '含油污水', |
| | | checked: true, // 默认选中状态 |
| | | filter: {}, |
| | | childLayer: 'fsss,hbss' // 关联PointLayers |
| | | }, |
| | | { |
| | | code: 'saltline', |
| | | name: '含盐污水线', |
| | | sname: '含盐污水', |
| | | checked: true, // 默认选中状态 |
| | | filter: {}, |
| | | childLayer: 'fsss,hbss' // 关联PointLayers |
| | | }, |
| | | { |
| | | code: 'alkaliline', |
| | | name: '含碱污水线', |
| | | sname: '含碱污水', |
| | | checked: true, // 默认选中状态 |
| | | filter: {}, |
| | | childLayer: 'fsss,hbss' // 关联PointLayers |
| | | }, |
| | | { |
| | | code: 'outlet', |
| | | name: '排口', |
| | | sname: '排口', |
| | | checked: true, // 默认选中状态 |
| | | filter: {}, |
| | | childLayer: 'pk' // 关联PointLayers |
| | | }, |
| | | { |
| | | code: 'accidentline', |
| | | name: '事故水线', |
| | | sname: '事故水', |
| | | checked: true, // 默认选中状态 |
| | | filter: {}, |
| | | childLayer: 'fsss,hbss' // 关联PointLayers |
| | | }, |
| | | { |
| | | code: 'loopline', |
| | | name: '循环水线', |
| | | sname: '循环水', |
| | | checked: true, // 默认选中状态 |
| | | filter: {}, |
| | | childLayer: 'fsss,hbss' // 关联PointLayers |
| | | }, |
| | | { |
| | | code: 'purifyline', |
| | | name: '净化水线', |
| | | sname: '净化水', |
| | | checked: true, // 默认选中状态 |
| | | filter: {}, |
| | | childLayer: 'fsss,hbss' // 关联PointLayers |
| | | }, |
| | | { |
| | | code: 'lifeline', |
| | | name: '生活污水', |
| | | sname: '生活污水', |
| | | checked: true, // 默认选中状态 |
| | | filter: {}, |
| | | childLayer: 'fsss,hbss' // 关联PointLayers |
| | | }, |
| | | { |
| | | code: 'areainfo', |
| | | name: '区域信息', |
| | | sname: '区域信息', |
| | | checked: true, // 默认选中状态 |
| | | filter: {}, |
| | | childLayer: 'qyxx' // 关联PointLayers |
| | | } |
| | | ] |
| | | } |
| | |
| | | import * as L from 'leaflet' |
| | | const APP_GIS_HOST = 'http://xearth.cn:6299' |
| | | const myRenderer = L.canvas()// 需要使用画布渲染的使用 renderer: myRenderer 作为参数 |
| | | // import * as L from 'leaflet' |
| | | import { LayerSewers } from './LayerSewers' |
| | | // const APP_GIS_HOST = 'http://xearth.cn:6299' |
| | | |
| | | // 几何类型常量 |
| | | const GEOM_POINT = 'POINT' |
| | | const APP_GIS_HOST_2 = 'http://xearth.cn:6230' |
| | | export const Layers = [ |
| | | { |
| | | code: 'guojie', |
| | | name: '国界', |
| | | icon_actived: '', |
| | | icon_deactived: '', |
| | | type: 'wmts', |
| | | url: APP_GIS_HOST + '/server/ogcserver/whp_guojie/wmts?x={x}&y={y}&z={z}', |
| | | inLegend: true, |
| | | checked: true, |
| | | option: { |
| | | zoomOffset: 1 |
| | | } |
| | | }, |
| | | |
| | | export const ServiceLayers = [ |
| | | /* { |
| | | code: 'pipeline', |
| | | name: '管网数据', |
| | |
| | | uppercase: false, |
| | | WMSTILE: 1 |
| | | }, */ |
| | | { |
| | | code: 'pipeline', |
| | | name: '管网数据', |
| | | icon_actived: '', |
| | | icon_deactived: '', |
| | | type: 'geojson', |
| | | // url: APP_GIS_HOST_PIPELINE + '/server/ogcserver/PipeLineTest/wms?version=1.1.1', |
| | | url: APP_GIS_HOST_2 + '/layer/findLayer?layerName=pipeline', |
| | | inLegend: true, |
| | | checked: true, |
| | | option: { |
| | | styles: { |
| | | fill: true, |
| | | weight: 2, |
| | | fillColor: '#06cccc', |
| | | color: '#06cccc', |
| | | fillOpacity: 0.2, |
| | | opacity: 0.8 |
| | | // dashArray:'10,4', |
| | | // dashSpeed:-10, |
| | | }, |
| | | renderer: myRenderer |
| | | LayerSewers |
| | | |
| | | }, |
| | | layers: [ |
| | | { |
| | | code: 'rainline', |
| | | name: '雨水线', |
| | | sname: '雨水', |
| | | checked: true, // 默认选中状态 |
| | | filter: {} |
| | | }, |
| | | { |
| | | code: 'oilline', |
| | | name: '含油污水线', |
| | | sname: '含油污水', |
| | | checked: true, // 默认选中状态 |
| | | filter: {} |
| | | }, |
| | | { |
| | | code: 'saltline', |
| | | name: '含盐污水线', |
| | | sname: '含盐污水', |
| | | checked: true, // 默认选中状态 |
| | | filter: {} |
| | | }, |
| | | { |
| | | code: 'alkaliline', |
| | | name: '含碱污水线', |
| | | sname: '含碱污水', |
| | | checked: true, // 默认选中状态 |
| | | filter: {} |
| | | }, |
| | | { |
| | | code: 'outlet', |
| | | name: '排口', |
| | | sname: '排口', |
| | | checked: true, // 默认选中状态 |
| | | filter: {} |
| | | }, |
| | | { |
| | | code: 'accidentline', |
| | | name: '事故水线', |
| | | sname: '事故水', |
| | | checked: true, // 默认选中状态 |
| | | filter: {} |
| | | }, |
| | | { |
| | | code: 'loopline', |
| | | name: '循环水线', |
| | | sname: '循环水', |
| | | checked: true, // 默认选中状态 |
| | | filter: {} |
| | | }, |
| | | { |
| | | code: 'purifyline', |
| | | name: '净化水线', |
| | | sname: '净化水', |
| | | checked: true, // 默认选中状态 |
| | | filter: {} |
| | | }, |
| | | { |
| | | code: 'lifeline', |
| | | name: '生活污水', |
| | | sname: '生活污水', |
| | | checked: true, // 默认选中状态 |
| | | filter: {} |
| | | }, |
| | | { |
| | | code: 'areainfo', |
| | | name: '区域信息', |
| | | sname: '区域信息', |
| | | checked: true, // 默认选中状态 |
| | | filter: {} |
| | | } |
| | | ], |
| | | filtersGroup: [ |
| | | ] |
| | | |
| | | export const PointLayers = [ |
| | | { |
| | | code: 'fsss', |
| | | name: '附属设施', |
| | |
| | | sname: '管段', |
| | | checked: true, // 默认选中状态 |
| | | geom: GEOM_POINT |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | } |
| | |
| | | import * as L from 'leaflet' |
| | | import TDT from './TDT' |
| | | import { Layers } from './Layers' |
| | | import { ServiceLayers, PointLayers } from './Layers' |
| | | const curWwwPath = window.document.location.href |
| | | const pathname = window.document.location.pathname |
| | | const pos = curWwwPath.indexOf(pathname) |
| | |
| | | showBaseMapType: 1, // 1显示天地图,2显示arcgis地图 |
| | | IntranetBaseMaps: TDT.intranet, |
| | | InternetBaseMaps: TDT.internet, |
| | | ServiceLayers: Layers |
| | | ServiceLayers: ServiceLayers, |
| | | PointLayers: PointLayers |
| | | } |
| | | |
| | | /** |