{ "params": { "basemap": "https://supermap2.wh-nf.cn:8090/bm", "mvt": "https://supermap0.wh-nf.cn:8090/vt", "sprites": [ "/static/libs/mapbox/style/sprite/sprite4" ], "init": { "center": [ 114.312, 34.802 ], "zoom": 13.6, "pitch": 55, "style": "/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": "http://t{s}.tianditu.com/DataServer?T=img_w&X={x}&Y={y}&L={z}&tk=dee46731f7a87187c6507ff35aa9f2ef", "subdomains": [ "0", "1", "2", "3", "4", "5", "6", "7" ], "minZoom": 1, "maxZoom": 19, "tileType": "" }, "methods": [] }, { "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-CanvasLayer", "type": "CanvasLayer", "params": { "id": "newfiber-CanvasLayer", "bbox": [ 110.98300209463804, 32.415967161418266, 111.34992583909221, 32.599933881244255 ], "width": 3000, "height": 1172, "images": "''||Array(16).fill().map((i,idx)=> `https://server1.wh-nf.cn:9000/newfiber-standard/2024/01/06/step${idx+1}.png`)" }, "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": "", "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": [ "layer", "''||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": [ "wall" ] }, { "name": "size", "params": [ 55 ] }, { "name": "style", "params": [ { "heightfixed": true, "opacity": 0.6, "sourceColor": "rgba(255,0,0,1)", "targetColor": "rbga(255,255,255, 0)" } ] } ] } ], "mapbox": [ { "id": "all_boundary", "key": "all_boundary", "source-layer": "all_boundary", "type": "line", "paint": { "line-color": "rgba(255,18,60,1)", "line-width": 1 }, "layout": {}, "minzoom": 0, "maxzoom": 24, "mType": "mvt" }, { "id": "pipeline_info", "key": "hubei_xiaogan_pipeline_info", "source-layer": "hubei_xiaogan_pipeline_info", "type": "line", "filter": [ "in", "layer", "" ], "paint": { "line-color": [ "match", [ "get", "layer" ], "YS", "#00c4d0", "WS", "#E6061A", "HS", "#ccff12", "#000000" ], "line-width": [ "match", [ "get", "data_class" ], 1, 8, 2, 6, 3, 4, 4, 2, 2 ] }, "layout": {}, "minzoom": 0, "maxzoom": 24, "mType": "mvt", "columns": "起点点号,终点点号,layer,data_class,st_asText(geometrys) as geometry" }, { "id": "city_boundary", "key": "hubei_xiaogan_hm_city_boundary", "source-layer": "hubei_xiaogan_hm_city_boundary", "type": "fill", "filter": [ "in", "name", "" ], "paint": { "fill-color": [ "get", "fill_color" ], "fill-outline-color": "#ffffff", "fill-opacity": 0.5 }, "layout": {}, "minzoom": 10, "maxzoom": 24, "mType": "mvt", "columns": "name,fill_color" }, { "id": "hubei_xiaogan_hm_psfq", "key": "hubei_xiaogan_hm_psfq", "source-layer": "hubei_xiaogan_hm_psfq", "type": "fill", "filter": [ "in", "type", "" ], "paint": { "fill-color": [ "get", "fill_color" ], "fill-outline-color": "#ffffff", "fill-opacity": 0.5 }, "layout": {}, "minzoom": 10, "maxzoom": 24, "mType": "mvt", "columns": "type,fill_color,st_asText(geometrys) as geometry" }, { "id": "pipeline_point", "key": "hubei_xiaogan_pipeline_point", "source-layer": "hubei_xiaogan_pipeline_point", "type": "symbol", "filter": [ "in", "图层", "" ], "paint": { "text-color": "#ffffff" }, "layout": { "icon-image": [ "match", [ "get", "图层" ], "雨水点", "ysj", "污水点", "wsj", "合流点", "hsj", "ysbz" ], "icon-size": 0.7, "text-field": "{起点点号,终点点号}", "text-font": [ "KlokanTech Noto Sans Regular" ], "text-size": 13, "text-line-height": 3, "text-anchor": "top" }, "minzoom": 16, "maxzoom": 24, "mType": "mvt", "columns": "设施编码,图层,st_asText(geometrys) as geometry" }, { "id": "point", "key": "point", "type": "symbol", "filter": [ "in", "type", "" ], "paint": { "text-color": "#ffffff" }, "layout": { "icon-image": [ "match", [ "get", "type" ], "paiKou", "paiKou", "YSBZ", "paiLaoBeng", "drainOutlet", "DFHZ2", "WSBZ", "wsBeng", "WSCLC", "WSC", "pipeSupervise", "rainSupervise", "PKsupervise", "YQGXMX", "waterlog", "yiLao", "riverLake", "KDJZWMX", "waterSectionInfo", "yuanTous" ], "icon-allow-overlap": true, "icon-anchor": "center", "icon-size": 0.7, "text-allow-overlap": true, "text-field": "{name}", "text-font": [ "KlokanTech Noto Sans Regular" ], "text-size": 16, "text-line-height": 3, "text-anchor": "bottom", "text-max-width": 50, "text-offset": [ 0, -1 ] }, "minzoom": 0, "maxzoom": 24, "mType": "geojson" } ], "orders": [ [ "pipeline_info" ], [ "pipeline_point" ], [ "poi_label" ], [ "place_label_city" ], [ "road_major_label" ], [ "place_label_other" ], [ "point" ] ], "filter": { "wsLine1": { "layerName": [ "pipeline_info", "pipeline_point" ], "filter": [ [ "WS", "HS" ], [ "污水点", "合流点" ] ] }, "ysLine1": { "layerName": [ "pipeline_info", "pipeline_point" ], "filter": [ [ "YS" ], [ "雨水点" ] ] }, "YSFQ": { "layerName": [ "hubei_xiaogan_hm_psfq" ], "filter": [ [ "YS" ] ] }, "WSFQ": { "layerName": [ "hubei_xiaogan_hm_psfq" ], "filter": [ [ "WS" ] ] }, "oldCity": { "layerName": [ "city_boundary" ], "filter": [ [ "老城区" ] ], "easeTo": { "center": [ 113.933, 30.926 ], "zoom": 13.6, "pitch": 55 } }, "southCity": { "layerName": [ "city_boundary" ], "filter": [ [ "南城新区" ] ], "easeTo": { "center": [ 113.933, 30.886 ], "zoom": 13.6, "pitch": 55 } }, "newCity": { "layerName": [ "city_boundary" ], "filter": [ [ "东城新区" ] ], "easeTo": { "center": [ 113.983, 30.896 ], "zoom": 13.6, "pitch": 55 } }, "allCity": { "layerName": [ "city_boundary" ], "filter": [ [ "东城新区", "南城新区", "老城区" ] ], "easeTo": { "center": [ 113.953, 30.906 ], "zoom": 13.6, "pitch": 55 } } } }