{ "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": 12.9, "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": [], "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 = ['#e5c51a', '#e5c51a', '#e5c51a'];\n return colors[key.indexOf(v)];\n }" ] }, { "name": "animate", "params": [ { "interval": 1, "duration": 1, "trailLength": 2 } ] }, { "name": "style", "params": [ { "opacity": 0.6, "lineTexture": false, "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": "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": "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-opacity": 0.4 }, "layout": {}, "minzoom": 10, "maxzoom": 24, "mType": "mvt", "columns": "type,fill_color,st_asText(geometrys) as geometry" }, { "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", "#1b76ff", "WS", "#ff4c61", "HS", "#ff4c61", "#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": "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", "方形", "fangxing", "菱形", "lingxing", "三角", "sanjiao", "圆形", "yuanxing", "ysbz" ], "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" }, { "id": "polygon", "key": "polygon", "type": "fill", "paint": { "fill-opacity": 0.8, "fill-color": [ "get", "color" ], "fill-outline-color": [ "get", "outline_color" ] }, "layout": {}, "minzoom": 0, "maxzoom": 24, "mType": "geojson" }, { "id": "linestring", "key": "linestring", "type": "line", "paint": { "line-opacity": 1, "line-color": [ "get", "color" ], "line-width": 2 }, "layout": {}, "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 } } } }