- {
- "params": {
- "basemap": "https://supermap2.wh-nf.cn:8090/bm",
- "mvt": "https://supermap0.wh-nf.cn:8090/vt",
- "sprites": [
- "/static/libs/mapbox/style/sprite/sprite4",
- "/static/libs/mapbox/style/sprite/sprite5",
- "/static/libs/mapbox/style/sprite/sprite6"
- ],
- "init": {
- "center": [
- 109.488,
- 36.596
- ],
- "zoom": 13,
- "pitch": 55,
- "style": null,
- "localStyle": "/static/libs/mapbox/style/customs/night-style.json"
- },
- "l7": {
- "images": [
- {
- "name": "02",
- "url": "https://gw.alipayobjects.com/zos/bmw-prod/ce83fc30-701f-415b-9750-4b146f4b3dd6.svg"
- },
- {
- "name": "map_selected",
- "url": "/static/libs/mapbox/style/sprite/map_selected.png"
- }
- ]
- }
- },
- "ogc": [
- {
- "id": "newfiber-XYZLayer",
- "type": "XYZLayer",
- "params": {
- "id": "newfiber-XYZLayer",
- "url": "https://t{s}.tianditu.gov.cn/DataServer?T=img_w&X={x}&Y={y}&L={z}&tk=a603e07a17766447f9e74f14c5454efa",
- "subdomains": [
- "0",
- "1",
- "2",
- "3",
- "4",
- "5",
- "6",
- "7"
- ],
- "minZoom": 1,
- "maxZoom": 19,
- "tileType": ""
- },
- "methods": [
- {
- "name": "addTo",
- "params": [
- "''||map"
- ]
- },
- {
- "name": "hide",
- "params": []
- }
- ]
- },
- {
- "id": "newfiber-WMTSLayer",
- "type": "WMTSLayer",
- "params": {
- "id": "newfiber-WMTSLayer",
- "url": "https://t{s}.tianditu.gov.cn/img_c/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=c&FORMAT=tiles&TILECOL={x}&TILEROW={y}&TILEMATRIX={z}&tk=5095c97223409ac114493d71ecb9cd87",
- "subdomains": [
- "0",
- "1",
- "2",
- "3",
- "4",
- "5",
- "6",
- "7"
- ]
- },
- "methods": []
- },
- {
- "id": "newfiber-WMSLayer",
- "type": "WMSLayer",
- "params": {
- "id": "newfiber-WMSLayer",
- "url": "http://server1.wh-nf.cn:8023/geoserver/xiaoganMapServer/wms",
- "layers": "xiaoganMapServer:GKFQ1"
- },
- "methods": []
- }
- ],
- "l7": [
- {
- "id": "hubei_xiaogan_roads",
- "key": "hubei_xiaogan_roads",
- "type": "LineLayer",
- "show": false,
- "params": {
- "autoFit": false,
- "zIndex": 10
- },
- "methods": [
- {
- "name": "shape",
- "params": [
- "line"
- ]
- },
- {
- "name": "color",
- "params": [
- "fclass",
- "''||function(v){\n let key = [\"trunk\", \"footway\", \"secondary\", \"trunk_link\", \"tertiary\", \"secondary_link\", \"tertiary_link\", \"living_street\", \"pedestrian\", \"primary\", \"residential\", \"track\", \"primary_link\", \"motorway_link\", \"motorway\", \"service\", \"unclassified\", \"path\"];\n let colors = ['#F9D371', '#3DB2FF', '#6E85B2', '#F47340', '#F6A9A9', '#EF2F88', '#5F7A61', '#1ee3cf', '#C2F784', '#FFF89A', 'rgba(22, 119, 255, .5)', '#93FFD8', '#BAFFB4', '#D3DEDC', '#AEFEFF', '#9B0000', '#F5F5F5', '#08ffc8', '#FFE3E3'];\n return colors[key.indexOf(v)];\n }"
- ]
- },
- {
- "name": "style",
- "params": [
- {
- "watercolor": "#6D99A8"
- }
- ]
- },
- {
- "name": "animate",
- "params": [
- {
- "interval": 1,
- "duration": 1,
- "trailLength": 2
- }
- ]
- }
- ],
- "columns": "fclass"
- },
- {
- "id": "sx_ya_smx_ps_line",
- "key": "pipeline_info_flow_ys",
- "type": "LineLayer",
- "show": false,
- "params": {
- "autoFit": false,
- "zIndex": 1
- },
- "methods": [
- {
- "name": "size",
- "params": [
- 3
- ]
- },
- {
- "name": "shape",
- "params": [
- "line"
- ]
- },
- {
- "name": "texture",
- "params": [
- "02"
- ]
- },
- {
- "name": "color",
- "params": [
- "type",
- "''||function(v){\n let key = [\"ys\", \"ws\", \"hs\"];\n let colors = ['#184375', '#E6061A', '#ccff12'];\n return colors[key.indexOf(v)];\n }"
- ]
- },
- {
- "name": "animate",
- "params": [
- {
- "interval": 1,
- "duration": 1,
- "trailLength": 2
- }
- ]
- },
- {
- "name": "style",
- "params": [
- {
- "opacity": 0.6,
- "lineTexture": true,
- "iconStep": 10,
- "borderWidth": 0.4,
- "borderColor": "#fff"
- }
- ]
- }
- ],
- "columns": "type",
- "filter": "type = 'ys'"
- },
- {
- "id": "sx_ya_smx_ps_line",
- "key": "pipeline_info_flow_ws1",
- "type": "LineLayer",
- "show": false,
- "params": {
- "autoFit": false,
- "zIndex": 1
- },
- "methods": [
- {
- "name": "size",
- "params": [
- 3
- ]
- },
- {
- "name": "shape",
- "params": [
- "line"
- ]
- },
- {
- "name": "texture",
- "params": [
- "02"
- ]
- },
- {
- "name": "color",
- "params": [
- "type",
- "''||function(v){\n let key = [\"ys\", \"ws\", \"hs\"];\n let colors = ['#184375', '#E6061A', '#E6061A'];\n return colors[key.indexOf(v)];\n }"
- ]
- },
- {
- "name": "animate",
- "params": [
- {
- "interval": 1,
- "duration": 1,
- "trailLength": 2
- }
- ]
- },
- {
- "name": "style",
- "params": [
- {
- "opacity": 0.6,
- "lineTexture": true,
- "iconStep": 10,
- "borderWidth": 0.4,
- "borderColor": "#fff"
- }
- ]
- }
- ],
- "columns": "type",
- "filter": "type in ('ws','hs')"
- },
- {
- "id": "",
- "key": "warning_monitor",
- "type": "PointLayer",
- "show": true,
- "params": {
- "zIndex": 0,
- "blend": "additive"
- },
- "methods": [
- {
- "name": "shape",
- "params": [
- "circle"
- ]
- },
- {
- "name": "color",
- "params": [
- "rgba(236,223,25,1.0)"
- ]
- },
- {
- "name": "size",
- "params": [
- "size",
- "''||function(v){return v}"
- ]
- },
- {
- "name": "animate",
- "params": [
- true
- ]
- },
- {
- "name": "style",
- "params": [
- {
- "unit": "meter"
- }
- ]
- }
- ]
- },
- {
- "id": "",
- "key": "highlight_linestring",
- "type": "LineLayer",
- "show": true,
- "params": {
- "autoFit": false,
- "zIndex": 1
- },
- "methods": [
- {
- "name": "size",
- "params": [
- 3
- ]
- },
- {
- "name": "shape",
- "params": [
- "line"
- ]
- },
- {
- "name": "texture",
- "params": [
- "02"
- ]
- },
- {
- "name": "color",
- "params": [
- "type",
- "''||function(v){\n let key = [\"ys\", \"ws\", \"hs\"];\n let colors = ['#184375', '#E6061A', '#ccff12'];\n return colors[key.indexOf(v)];\n }"
- ]
- },
- {
- "name": "animate",
- "params": [
- {
- "interval": 1,
- "duration": 1,
- "trailLength": 2
- }
- ]
- },
- {
- "name": "style",
- "params": [
- {
- "opacity": 0.6,
- "lineTexture": true,
- "iconStep": 10,
- "borderWidth": 0.4,
- "borderColor": "#fff"
- }
- ]
- }
- ]
- },
- {
- "id": "",
- "key": "highlight_point1",
- "type": "PointLayer",
- "show": true,
- "params": {
- "zIndex": 0,
- "blend": "additive"
- },
- "methods": [
- {
- "name": "shape",
- "params": [
- "circle"
- ]
- },
- {
- "name": "color",
- "params": [
- "rgba(255,0,0,1.0)"
- ]
- },
- {
- "name": "size",
- "params": [
- 10
- ]
- },
- {
- "name": "animate",
- "params": [
- true
- ]
- },
- {
- "name": "style",
- "params": [
- {
- "unit": "meter"
- }
- ]
- }
- ]
- },
- {
- "id": "",
- "key": "highlight_point",
- "type": "PointLayer",
- "show": true,
- "params": {
- "zIndex": 0,
- "blend": "additive"
- },
- "methods": [
- {
- "name": "shape",
- "params": [
- "map_selected"
- ]
- },
- {
- "name": "size",
- "params": [
- 30
- ]
- },
- {
- "name": "style",
- "params": [
- {
- "offsets": [
- 0,
- 0
- ]
- }
- ]
- }
- ]
- },
- {
- "id": "",
- "key": "highlight_polygon",
- "type": "LineLayer",
- "show": true,
- "params": {
- "zIndex": 0
- },
- "methods": [
- {
- "name": "shape",
- "params": [
- "line"
- ]
- },
- {
- "name": "size",
- "params": [
- 2
- ]
- },
- {
- "name": "color",
- "params": [
- "rgba(189, 209, 150,1)"
- ]
- }
- ]
- }
- ],
- "mapbox": [
- {
- "id": "pipeline_info",
- "key": "sx_ya_smx_ps_line",
- "source-layer": "sx_ya_smx_ps_line",
- "type": "line",
- "filter": [
- "in",
- "type",
- ""
- ],
- "paint": {
- "line-color": [
- "match",
- [
- "get",
- "type"
- ],
- "ys",
- "#1b76ff",
- "ws",
- "#ff4c61",
- "hs",
- "#d8ad4f",
- "#000000"
- ],
- "line-width": 3
- },
- "layout": {},
- "minzoom": 0,
- "maxzoom": 24,
- "mType": "mvt",
- "columns": "type,起点类,起点号,地面高1,井底高1,终点类,地面高2,井底高2,st_asText(geometrys) as geometry"
- },
- {
- "id": "rq_pipeline_info",
- "key": "sx_ya_smx_rq_line",
- "type": "line",
- "filter": [
- "in",
- "color",
- ""
- ],
- "paint": {
- "line-color": [
- "get",
- "color"
- ],
- "line-width": 2
- },
- "layout": {},
- "minzoom": 0,
- "maxzoom": 24,
- "mType": "geojsonMvt",
- "columns": "id,color,pipediameter,deviceName,address,st_asText(geometrys) as geometry"
- },
- {
- "id": "pipeline_point",
- "key": "sx_ya_smx_ps_point",
- "source-layer": "sx_ya_smx_ps_point",
- "type": "symbol",
- "filter": [
- "in",
- "type",
- ""
- ],
- "paint": {
- "text-color": "#ffffff"
- },
- "layout": {
- "icon-image": [
- "match",
- [
- "get",
- "type"
- ],
- "ys",
- "ysj",
- "ws",
- "wsj",
- "hs",
- "hsj",
- "ysbz"
- ],
- "icon-size": 0.65,
- "text-field": "{编号}",
- "text-font": [
- "KlokanTech Noto Sans Regular"
- ],
- "text-size": 15,
- "text-line-height": 3,
- "text-anchor": "top"
- },
- "minzoom": 15.5,
- "maxzoom": 24,
- "mType": "mvt",
- "columns": "type,编号,地面高,井底高,st_asText(geometrys) as geometry"
- },
- {
- "id": "sx_ya_smx_rq_point",
- "key": "sx_ya_smx_rq_point",
- "source-layer": "sx_ya_smx_rq_point",
- "type": "symbol",
- "filter": [
- "in",
- "devicetype"
- ],
- "layout": {
- "icon-image": [
- "match",
- [
- "get",
- "devicetype"
- ],
- 1,
- "wsj",
- 2,
- "wsj",
- 3,
- "rainBengZhan_icon",
- 4,
- "hsj",
- 5,
- "waterCourse_icon",
- 6,
- "sewageFactory_icon",
- 7,
- "origine_icon",
- 8,
- "waterLoging_icon",
- "ysbz"
- ],
- "icon-size": 0.65
- },
- "minzoom": 10,
- "maxzoom": 24,
- "mType": "mvt",
- "columns": "id,deviceType,deviceName,st_asText(geometrys) as geometry"
- },
- {
- "id": "point",
- "key": "point",
- "type": "symbol",
- "minzoom": 0,
- "maxzoom": 24,
- "filter": [
- "in",
- "type",
- ""
- ],
- "paint": {
- "text-color": "rgba(255, 255, 255, 1)",
- "text-halo-color": "rgba(36, 94, 122, 1)",
- "text-halo-width": 2
- },
- "layout": {
- "icon-image": [
- "match",
- [
- "get",
- "type"
- ],
- "warning_monitor",
- "warning_monitor",
- "success_monitor",
- "success_monitor",
- "error_monitor",
- "error_monitor",
- "video",
- "SP2",
- "PLBZ",
- "waiPaiBeng",
- "paiKou",
- "paiKou",
- "YSBZ",
- "paiLaoBeng",
- "drainOutlet",
- "DFHZ2",
- "WSBZ",
- "wsBeng",
- "WSCLC",
- "WSC",
- "orinign",
- "orinign",
- "rainStation",
- "rain",
- "pipeSupervise",
- "rainSupervise",
- "PKsupervise",
- "YQGXMX",
- "yiLaoPoint",
- "yiLao",
- "fengXianPoint",
- "KDJZWMX",
- "waterSectionInfo",
- "yuanTous",
- "paiKou_1",
- "paiKou",
- "YSBZ_1",
- "paiLaoBeng",
- "drainOutlet_1",
- "DFHZ2",
- "WSBZ_1",
- "wsBeng",
- "WSCLC_1",
- "WSC",
- "orinign_1",
- "orinign",
- "rainStation_1",
- "rain",
- "pipeSupervise_1",
- "rainSupervise",
- "PKsupervise_1",
- "YQGXMX",
- "waterlog_1",
- "yiLao",
- "riverLake_1",
- "KDJZWMX",
- "waterSectionInfo_1",
- "yuanTou",
- "PLBZ_1",
- "waiPaiBeng",
- "HMJZYSQ",
- "Architectural_icon",
- "HMXGYLD",
- "park_icon",
- "HMXDLGC",
- "road_icon",
- "HMXSX",
- "drainage_icon",
- "GWPCYXF",
- "pipe_icon",
- "SBDS",
- "waterFactory_icon",
- "DFZW",
- "waterLoging_icon",
- "yiBian",
- "rainBengZhan_icon",
- "xiaXian",
- "combineBengZhan_icon",
- "ysbz"
- ],
- "text-allow-overlap": false,
- "icon-allow-overlap": true,
- "icon-anchor": "center",
- "icon-size": 0.8,
- "text-field": "{name}",
- "text-font": [
- "KlokanTech Noto Sans Regular"
- ],
- "text-size": 14,
- "text-line-height": 1,
- "text-anchor": "bottom",
- "text-max-width": 12,
- "text-offset": [
- 0,
- -1
- ]
- },
- "mType": "geojson"
- }
- ],
- "orders": [
- [
- "newfiber-XYZLayer"
- ],
- [
- "pipeline_info"
- ],
- [
- "rq_pipeline_info"
- ],
- [
- "pipeline_point"
- ],
- [
- "sx_ya_smx_rq_point"
- ],
- [
- "poi_label"
- ],
- [
- "place_label_city"
- ],
- [
- "road_major_label"
- ],
- [
- "place_label_other"
- ],
- [
- "point"
- ]
- ],
- "filter": {
- "wsLine1": {
- "layerName": [
- "pipeline_info",
- "pipeline_point"
- ],
- "filter": [
- [
- "ws",
- "hs"
- ],
- [
- "ws",
- "hs"
- ]
- ]
- },
- "ysLine1": {
- "layerName": [
- "pipeline_info",
- "pipeline_point"
- ],
- "filter": [
- [
- "ys"
- ],
- [
- "ys"
- ]
- ]
- },
- "rq_SZLH": {
- "layerName": [
- "rq_pipeline_info"
- ],
- "filter": [
- [
- "rgba(249,227,28,1)"
- ]
- ]
- },
- "rq_TYLH": {
- "layerName": [
- "rq_pipeline_info"
- ],
- "filter": [
- [
- "#FF0002"
- ]
- ]
- },
- "rq_LGLH": {
- "layerName": [
- "rq_pipeline_info"
- ],
- "filter": [
- [
- "rgba(25,201,25,1)"
- ]
- ]
- },
- "rq_other": {
- "layerName": [
- "rq_pipeline_info"
- ],
- "filter": [
- [
- "rgba(29,53,234,1)"
- ]
- ]
- },
- "rq_all": {
- "layerName": [
- "rq_pipeline_info"
- ],
- "filter": [
- [
- "#FF0002",
- "rgba(234,26,26,1)",
- "rgba(249,227,28,1)",
- "rgba(25,201,25,1)",
- "rgba(29,53,234,1)"
- ]
- ]
- },
- "tiaoYaQi": {
- "layerName": [
- "sx_ya_smx_rq_point"
- ],
- "filter": [
- [
- 3
- ]
- ]
- },
- "rq_jieDian": {
- "layerName": [
- "sx_ya_smx_rq_point"
- ],
- "filter": [
- [
- 4
- ]
- ]
- },
- "jiXingBaoHu": {
- "layerName": [
- "sx_ya_smx_rq_point"
- ],
- "filter": [
- [
- 5
- ]
- ]
- },
- "rq_liuLiangJi": {
- "layerName": [
- "sx_ya_smx_rq_point"
- ],
- "filter": [
- [
- 7
- ]
- ]
- },
- "rq_unknow": {
- "layerName": [
- "sx_ya_smx_rq_point"
- ],
- "filter": [
- [
- 1
- ]
- ]
- }
- }
- }