{ "params": { "basemap": "https://supermap2.wh-nf.cn:8090/bm", "mvt": "https://supermap0.wh-nf.cn:8090/vt", "sprites": [ "/static/libs/mapbox/style/sprite/sprite3", "/static/libs/mapbox/style/sprite/sprite4", "/static/libs/mapbox/style/sprite/sprite5", "/static/libs/mapbox/style/sprite/sprite6", "/static/libs/mapbox/style/sprite/sprite7", "/static/libs/mapbox/style/sprite/sprite8" ], "init": { "center": [ 109.478, 36.606 ], "zoom": 14, "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": [ 2 ] }, { "name": "shape", "params": [ "line" ] }, { "name": "color", "params": [ " #1b76ff" ] }, { "name": "animate", "params": [ { "interval": 1, "duration": 2, "trailLength": 0.8 } ] } ], "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": [ 2 ] }, { "name": "shape", "params": [ "line" ] }, { "name": "color", "params": [ "#ff4c61" ] }, { "name": "animate", "params": [ { "interval": 1, "duration": 2, "trailLength": 0.8 } ] } ], "columns": "type", "filter": "type in ('ws','hs')" }, { "id": "sx_ya_smx_rq_line2", "key": "sx_ya_smx_rq_line_sz", "type": "LineLayer", "show": false, "params": { "autoFit": false, "zIndex": 1 }, "methods": [ { "name": "size", "params": [ 2 ] }, { "name": "shape", "params": [ "line" ] }, { "name": "color", "params": [ "#f0ecde" ] }, { "name": "animate", "params": [ { "interval": 0.5, "duration": 2, "trailLength": 0.6 } ] } ], "columns": "pipeleveid", "filter": "pipeleveid in ('干管','主干管')" }, { "id": "sx_ya_smx_rq_line2", "key": "sx_ya_smx_rq_line_zg", "type": "LineLayer", "show": false, "params": { "autoFit": false, "zIndex": 1 }, "methods": [ { "name": "size", "params": [ 2 ] }, { "name": "shape", "params": [ "line" ] }, { "name": "color", "params": [ "#f0ecde" ] }, { "name": "animate", "params": [ { "interval": 0.3, "duration": 2.2, "trailLength": 0.4 } ] } ], "columns": "pipeleveid", "filter": "pipeleveid in ('主管')" }, { "id": "sx_ya_smx_rq_line2", "key": "sx_ya_smx_rq_line_zhig", "type": "LineLayer", "show": false, "params": { "autoFit": false, "zIndex": 1 }, "methods": [ { "name": "size", "params": [ 2 ] }, { "name": "shape", "params": [ "line" ] }, { "name": "texture", "params": [ "02" ] }, { "name": "color", "params": [ "#f4cf4f" ] }, { "name": "animate", "params": [ { "interval": 1, "duration": 1, "trailLength": 1 } ] }, { "name": "style", "params": [ { "opacity": 0.8, "lineTexture": true, "iconStep": 50, "borderWidth": 0.1, "borderColor": "#fff" } ] } ], "columns": "pipeleveid", "filter": "pipeleveid in ('支管')" }, { "id": "", "key": "warning_monitor", "type": "PointLayer", "show": true, "params": { "zIndex": 0, "blend": "additive" }, "methods": [ { "name": "shape", "params": [ "circle" ] }, { "name": "color", "params": [ "#ff7734" ] }, { "name": "size", "params": [ "size", "''||function(v){return v}" ] }, { "name": "animate", "params": [ true ] }, { "name": "style", "params": [ { "unit": "meter" } ] } ] }, { "id": "", "key": "warning_monitor1", "type": "PointLayer", "show": true, "params": { "zIndex": 0, "blend": "additive" }, "methods": [ { "name": "shape", "params": [ "circle" ] }, { "name": "color", "params": [ "#e64032" ] }, { "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": "yanAn_ShequArea", "key": "yanAn_ShequArea", "filter": [ "in", "c_layer", "" ], "type": "fill", "paint": { "fill-color": [ "get", "color" ] }, "layout": {}, "minzoom": 0.5, "maxzoom": 24, "mType": "geojson" }, { "id": "yanAn_ShequArea_line", "key": "yanAn_ShequArea_line", "filter": [ "in", "c_layer", "" ], "type": "line", "paint": { "line-color": "rgba(255,255,255,1)", "line-width": 1.5 }, "layout": {}, "minzoom": 0.5, "maxzoom": 24, "mType": "geojson" }, { "id": "yanAn_ShequArea_label", "key": "yanAn_ShequArea_label", "type": "symbol", "filter": [ "in", "c_layer", "" ], "minzoom": 0, "maxzoom": 24, "paint": { "text-color": "rgba(0,0,0,1)", "text-halo-color": "rgba(255,255,255,1)", "text-halo-width": 0.8 }, "layout": { "text-field": [ "get", "ComName" ], "text-font": [ "KlokanTech Noto Sans Regular" ], "text-anchor": "center", "text-size": 16, "text-max-width": 10, "text-allow-overlap": true }, "mType": "geojson" }, { "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_line2", "type": "line", "filter": [ "in", "pipeleveid", "" ], "paint": { "line-color": [ "match", [ "get", "pipeleveid" ], "干管", "#f7aa3c", "主干管", "#f7aa3c", "主管", "#b2893b", "#755d31" ], "line-width": [ "match", [ "get", "pipeleveid" ], "干管", 5, "主干管", 5, "主管", 3, 2 ] }, "layout": {}, "minzoom": 0, "maxzoom": 24, "mType": "geojsonMvt", "columns": "id,color,level,address,pipeleveid,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, "weiZhi_iocn", 2, "weiZhi_iocn", 3, "tiaoYaQi_icon", 4, "jieDian_iocn", 5, "jiXing_iocn", 6, "sewageFactory_icon", 7, "liuLiangJi_iocn", 8, "weiZhi_iocn", "weiZhi_iocn" ], "icon-size": 0.65 }, "minzoom": 10, "maxzoom": 24, "mType": "mvt", "columns": "id,deviceType,deviceName,st_asText(geometrys) as geometry" }, { "id": "sx_ya_smx_bujianpoint", "key": "sx_ya_smx_bujianpoint", "source-layer": "sx_ya_smx_bujianpoint", "type": "symbol", "filter": [ "in", "objname" ], "layout": { "icon-image": [ "match", [ "get", "objname" ], "上水井盖", "tiaoYaQi_icon", "污水井盖", "wsj", "雨水井盖", "ysj", "雨水箅子", "ysbz", "电力井盖", "jiXing_iocn", "路灯井盖", "liuLiangJi_iocn", "通信井盖", "jieDian_iocn", "热力井盖", "WSCLC_icon", "燃气井盖", "guanWangJianCe_icon", "消防设施", "yiLaos", "电缆井盖", "waterCourse_icon", "中水井盖", "shuiWeuJianCe", "燃气调压站(箱)", "WSCs", "露天燃气管道", "YQGXMXs", "车辆加油(气、电)站", "orinigns", "orinigns" ], "icon-size": [ "match", [ "get", "objname" ], "上水井盖", 0.65, "污水井盖", 0.65, "雨水井盖", 0.65, "雨水箅子", 0.65, "电力井盖", 0.65, "路灯井盖", 0.65, "通信井盖", 0.65, "热力井盖", 0.65, "燃气井盖", 0.65, "消防设施", 2, "电缆井盖", 0.55, "中水井盖", 0.65, "燃气调压站(箱)", 2, "露天燃气管道", 2, "车辆加油(气、电)站", 2, 0.65 ], "text-allow-overlap": false, "icon-allow-overlap": false }, "minzoom": 10, "maxzoom": 24, "mType": "mvt", "columns": "objname,locatedsc,material,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", "warning_monitor1", "warning_monitor1", "success_monitor", "success_monitor", "error_monitor", "error_monitor", "video", "shiPinJianCe_icon", "PLBZ", "waiPaiBeng", "paiKou", "paiKou", "YSBZ", "ysBengZhan_icon", "drainOutlet", "DFHZ2", "WSBZ", "wsBeng", "WSCLC", "WSCLC_icon", "orinign", "orinign", "rainStation", "rain", "pipeSupervise", "guanWangJianCe_icon", "PKsupervise", "paiKouJianCe_icon", "yiLaoPoint", "yiLaoDian_icon", "fengXianPoint", "fengXianDian_icon", "waterSectionInfo", "yuanTous", "HMJZYSQ", "Architectural_icon", "HMXGYLD", "park_icon", "HMXDLGC", "road_icon", "HMXSX", "drainage_icon", "GWPCYXF", "pipepumping_icon", "alreadyDeal_DS", "waterFactory_icon", "alreadyDeal_DF", "waterLoging_icon", "alreadyDeal_YB", "rainBengZhan_icon", "alreadyDeal_XX", "combineBengZhan_icon", "alreadyDeal_QT", "waterCourse_icon", "noDeal_DS", "waterFactory_icon", "noDeal_DF", "waterLoging_icon", "noDeal_YB", "rainBengZhan_icon", "noDeal_XX", "combineBengZhan_icon", "noDeal_QT", "waterCourse_icon", "ranQi_supervise", "ranQiJianCe", "paishuiSupervise", "shuiWeuJianCe", "ysbz" ], "text-allow-overlap": true, "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": [ [ "干管", "主干管" ] ] }, "rq_TYLH": { "layerName": [ "rq_pipeline_info" ], "filter": [ [ "主管" ] ] }, "rq_LGLH": { "layerName": [ "rq_pipeline_info" ], "filter": [ [ "支管" ] ] }, "rq_other": { "layerName": [ "rq_pipeline_info" ], "filter": [ [ "' '", "连接管", "埋地低压" ] ] }, "rq_all": { "layerName": [ "rq_pipeline_info" ], "filter": [ [ "干管", "主干管", "主管", "支管", "连接管", "埋地低压" ] ] }, "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 ] ] }, "yanAnShequArea": { "layerName": [ "yanAn_ShequArea", "yanAn_ShequArea_line", "yanAn_ShequArea_label" ], "filter": [ [ "延安社区分区" ], [ "延安社区分区" ], [ "延安社区分区" ] ] }, "shangshuijing": { "layerName": [ "sx_ya_smx_bujianpoint" ], "filter": [ [ "上水井盖" ] ] }, "wushuijing": { "layerName": [ "sx_ya_smx_bujianpoint" ], "filter": [ [ "污水井盖" ] ] }, "yushuijing": { "layerName": [ "sx_ya_smx_bujianpoint" ], "filter": [ [ "雨水井盖" ] ] }, "yushuibizi": { "layerName": [ "sx_ya_smx_bujianpoint" ], "filter": [ [ "雨水箅子" ] ] }, "dianlijing": { "layerName": [ "sx_ya_smx_bujianpoint" ], "filter": [ [ "电力井盖" ] ] }, "ludengjing": { "layerName": [ "sx_ya_smx_bujianpoint" ], "filter": [ [ "路灯井盖" ] ] }, "tongxinjing": { "layerName": [ "sx_ya_smx_bujianpoint" ], "filter": [ [ "通信井盖" ] ] }, "relijing": { "layerName": [ "sx_ya_smx_bujianpoint" ], "filter": [ [ "热力井盖" ] ] }, "ranqijing": { "layerName": [ "sx_ya_smx_bujianpoint" ], "filter": [ [ "燃气井盖" ] ] }, "xiaofangsheshi": { "layerName": [ "sx_ya_smx_bujianpoint" ], "filter": [ [ "消防设施" ] ] }, "dianlanjing": { "layerName": [ "sx_ya_smx_bujianpoint" ], "filter": [ [ "电缆井盖" ] ] }, "zhongshuijing": { "layerName": [ "sx_ya_smx_bujianpoint" ], "filter": [ [ "中水井盖" ] ] }, "rantitiaoyaxiang": { "layerName": [ "sx_ya_smx_bujianpoint" ], "filter": [ [ "燃气调压站(箱)" ] ] }, "lutianranqiguandao": { "layerName": [ "sx_ya_smx_bujianpoint" ], "filter": [ [ "露天燃气管道" ] ] }, "cheliangjiayouzhan": { "layerName": [ "sx_ya_smx_bujianpoint" ], "filter": [ [ "车辆加油(气、电)站" ] ] } } }