- {
- "params": {
- "basemap": "https://supermap2.wh-nf.cn:8090/bm",
- "mvt": "https://supermap0.wh-nf.cn:8090/vt/mvt",
- "geojson": "https://supermap0.wh-nf.cn:8090/vt/v1/geojson",
- "sprites": [
- "/static/libs/mapbox/style/sprite/sprite",
- "/static/libs/mapbox/style/sprite/sprite1"
- ],
- "init": {
- "center": [
- 114.45370037156442, 30.525710664701975
- ],
- "zoom": 11.27664,
- "pitch": 0,
- "style":"",
- "localStyle": "/static/libs/mapbox/mapbox-street-style.json"
- },
- "l7": {
- "images": [
- {
- "name": "map_selected",
- "url": "/static/libs/mapbox/images/选中.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": 17,
- "tileType": ""
- },
- "methods": [
- {
- "name": "addTo",
- "params": [
- "''||map"
- ]
- },
- {
- "name": "hide",
- "params": []
- }
- ]
- }
- ],
- "l7": [],
- "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": "hb_wh_dhgx_merge",
- "key": "hb_wh_dhgx_merge_thematic",
- "type": "fill",
- "filter": [
- "all",
- ["<=", ["zoom"], ["-", ["get", "max_z"], 0]],
- [">=", ["zoom"], ["-", ["get", "min_z"], 0]],
- ["in", ["get", "geometry_type"], ["literal", ["3"]]]
- ],
- "paint": {
- "fill-color": [
- "get",
- "color"
- ],
- "fill-opacity": 0.5
- },
- "layout": {},
- "minzoom": 7,
- "maxzoom": 24,
- "mType": "geojsonMvt",
- "columns": "c_layer,min_z,max_z,layer,geometry_type,name,color,b_color,st_asText(geometrys) as geometry"
- },
- {
- "id": "hb_wh_dhgx_merge_border",
- "key": "hb_wh_dhgx_merge_thematic",
- "type": "line",
- "filter": [
- "all",
- ["<=", ["zoom"], ["-", ["get", "max_z"], 0]],
- [">=", ["zoom"], ["-", ["get", "min_z"], 0]],
- ["in", ["get", "geometry_type"],["literal", ["2"]]]
- ],
- "paint": {
- "line-color": [
- "get",
- "color"
- ],
- "line-width": [
- "interpolate",["linear"],["zoom"],
- 1,1,
- 8,2,
- 13,5
- ],
- "line-dasharray": [
- "match",
- ["get", "c_layer"],
- "轮廓", [2, 2],
- "尾水路径_路线1", [2, 2],
- [1]
- ]
- },
- "layout": {
- "line-join": [
- "match",
- ["get", "c_layer"],
- "轮廓", "round",
- "尾水路径_路线1", "round",
- "butt"
- ]
- },
- "minzoom": 7,
- "maxzoom": 24,
- "mType": "geojsonMvt",
- "columns": "c_layer,min_z,max_z,layer,geometry_type,name,color,b_color,st_asText(geometrys) as geometry"
- },
- {
- "id": "hb_wh_dhgx_merge_text",
- "key": "hb_wh_dhgx_merge_thematic",
- "type": "symbol",
- "filter": [
- "all",
- ["<=", ["zoom"], ["-", ["get", "max_z"], 0]],
- [">=", ["zoom"], ["-", ["get", "min_z"], 0]]
- ],
- "minzoom": 0,
- "maxzoom": 24,
- "paint": {
- "text-color": [
- "get",
- "b_color"
- ],
- "text-halo-color": "rgba(0,0,0,1)",
- "text-halo-width": 1,
- "text-halo-blur": 1
- },
- "layout": {
- "icon-image": [
- "match",
- ["get", "c_layer"],
- "泵站","泵站",
- "汤逊湖雨水布点","lan_五角星",
- "东湖雨水布点","lan_五角星",
- "南湖小流域出口布点","lan_五角星",
- "南湖小流域初雨截留点","cheng_五角星",
- "南湖小流域加密布点","hong_五角星",
- "洪山交界点","正三角形",
- "支管接入干管处t","倒三角",
- "泵前","半圆",
- "主干管","园",
- "transparent"
- ],
- "icon-allow-overlap": true,
- "icon-anchor": "center",
- "icon-size": 0.2,
- "text-allow-overlap": false,
- "text-field": "{name}",
- "text-font": [
- "KlokanTech Noto Sans Regular"
- ],
- "text-size": 16,
- "text-justify": "left",
- "text-anchor": "center",
- "text-line-height": 1.2,
- "text-max-width": 50,
- "text-offset": [0, 1.2],
- "text-optional": true
- },
- "mType": "geojsonMvt",
- "columns": "c_layer,min_z,max_z,layer,geometry_type,name,color,b_color,st_asText(geometrys_center) as geometry",
- "geom_column": "geometrys_center"
- },
- {
- "id": "point",
- "key": "point",
- "type": "symbol",
- "minzoom": 0,
- "maxzoom": 24,
- "filter": [
- "in",
- "type",
- "",
- "1_泵站",
- "1_污水处理厂"
- ],
- "paint": {
- "text-color": "#ffffff",
- "text-halo-blur": 1.5,
- "text-halo-color": "rgba(0,0,0,1)",
- "text-halo-width": 1.5,
- "text-opacity": ["step", ["zoom"], 0, 14, 1]
- },
- "layout": {
- "icon-image": [
- "match",
- [
- "get",
- "type"
- ],
- "rain","雨量站扎点@2x",
- "port_channel_info","港渠扎点@2x",
- "rainwater_pipeline_water_level","雨水管网液位扎点@2x",
- "water_region_info","分区信息扎点@2x",
- "waterlogging","渍水监测点扎点@2x",
- "waterlogging_point_info","渍水点扎点@2x",
- "sewage_pump_station_info","污水泵站扎点@2x",
- "sewage_factory_info","污水处理厂扎点@2x",
- "channel_water_level","港渠水位扎点@2x",
- "outlet_quality","排口水质扎点@2x",
- "channel_quality","港渠水质扎点@2x",
- "outlet_info","排口扎点@2x",
- "lake_info","湖泊扎点@2x",
- "diversion_well_info","分流井扎点@2x",
- "lake_water_level","湖泊水位扎点@2x",
- "water_gate_info","水闸扎点@2x",
- "storage_tank_info","调蓄池扎点@2x",
- "outlet_water_level","排口水质扎点@2x",
- "region_info","分区信息扎点@2x",
- "rain_water_pump_station_info","雨水泵站扎点@2x",
- "sewage_pipeline_quality","污水管网水质扎点@2x",
- "drainage_info","排水户扎点@2x",
- "rainwater_pipeline_quality","雨水管网水质扎点@2x",
- "reservoir_info","水库扎点@2x",
- "reservoir_water_level","水库水位@2x",
- "1_泵站", "污水泵站扎点@2x",
- "1_污水处理厂", "污水处理厂扎点@2x",
- "0"
- ],
- "icon-allow-overlap": true,
- "icon-anchor": "center",
- "icon-offset": [
- "match",
- ["get", "type"],
- "问题管线", [50,50],
- [0,0]
- ],
- "icon-size": 1,
- "text-allow-overlap": true,
- "text-field": "{name}",
- "text-font": [
- "KlokanTech Noto Sans Regular"
- ],
- "text-size": 15,
- "text-justify": "left",
- "text-anchor": "center",
- "text-line-height": 1.3,
- "text-max-width": 50,
- "text-offset": [
- "match",
- ["get", "type"],
- "问题管线", [3,6],
- [0,3]
- ],
- "text-optional": true
- },
- "mType": "geojson"
- },
- {
- "id": "polygon",
- "key": "polygon",
- "filter": [
- "in",
- "type",
- ""
- ],
- "type": "fill-extrusion",
- "paint": {
- "fill-extrusion-color": [
- "get",
- "color"
- ]
- },
- "layout": {},
- "minzoom": 0,
- "maxzoom": 24,
- "mType": "geojson"
- },
- {
- "id": "linestring",
- "key": "linestring",
- "type": "line",
- "filter": [
- "in",
- "type",
- ""
- ],
- "paint": {
- "line-opacity": [
- "interpolate",
- [
- "linear"
- ],
- [
- "zoom"
- ],
- 15,
- 1,
- 18.05,
- 0
- ],
- "line-color": [
- "get",
- "color"
- ],
- "line-width": 4
- },
- "layout": {},
- "minzoom": 0,
- "maxzoom": 24,
- "mType": "geojson"
- },
- {
- "id": "pipeline_info",
- "key": "hb_wh_dhgx_pipe_line",
- "source-layer": "hb_wh_dhgx_pipe_line",
- "type": "line",
- "paint": {
- "line-color": [
- "match",
- ["get", "管段类型"],
- "雨水", "#184375",
- "污水", "#E6061A",
- "合流", "#ccff12",
- "#000000"
- ],
- "line-width": [
- "match",
- ["get", "级别"],
- 1, 5,
- 2, 2,
- 2
- ]
- },
- "layout": {},
- "minzoom": 0,
- "maxzoom": 24,
- "mType": "mvt",
- "columns": "*,concat(trim(流域),trim(管段类型)) as f_type,st_asText(geometrys) as geometry"
- },
- {
- "id": "pipeline_point",
- "key": "hb_wh_dhgx_pipe_point",
- "source-layer": "hb_wh_dhgx_pipe_point",
- "type": "symbol",
- "paint": {"text-color": "#333"},
- "layout": {
- "icon-image": [
- "match",
- ["concat", ["get", "类型"], ["get", "附属物"]],
- "雨水进水口", "ys_排水口",
- "雨水检修井", "ysj",
- "雨水污水篦", "雨水箅",
- "雨水窨井", "ysj",
- "雨水出水口", "ys_排水口",
- "雨水雨水箅", "雨水箅",
-
- "污水进水口", "ws_排水口",
- "污水检修井", "wsj",
- "污水污水篦", "污水箅",
- "污水窨井", "wsj",
- "污水出水口", "ws_排水口",
- "污水雨水箅", "污水箅",
- "预留口"
- ],
- "icon-size": 1,
- "text-field": "{设施编号}",
- "text-font": [
- "KlokanTech Noto Sans Regular"
- ],
- "text-size": 13,
- "text-line-height": 3,
- "text-anchor": "top"
- },
- "minzoom": 14,
- "maxzoom": 24,
- "mType": "mvt",
- "columns": "*,concat(trim(流域),trim(类型)) as f_type,st_asText(geometrys) as geometry"
- }
- ],
- "orders": [
- ["all_boundary"],
- ["hb_wh_dhgx_merge_border"],
- ["hb_wh_dhgx_merge_text"],
- ["poi_label"],
- ["place_label_city"],
- ["road_major_label"],
- ["place_label_other"],
- ["point"]
- ],
- "filter": {
-
- }
- }