Newer
Older
DH_Apicture / public / static / libs / mapbox / style / wh_dhgx1.json
@zhangqy zhangqy 28 days ago 14 KB first commit
{
  "params": {
    "basemap": "https://supermap2.wh-nf.cn:8090/bm",
    "mvt": "https://supermap0.wh-nf.cn:8090/vt",
    "sprites": [
      "/static/libs/mapbox/style/sprite/sprite2"
    ],
    "init": {
      "center": [
        114.4542400498457,
        30.487657985035053
      ],
      "zoom": 13.15,
      "style": "/static/libs/mapbox/mapbox-street-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-CanvasLayer1",
      "type": "CanvasLayer",
      "params": {
        "id": "newfiber-CanvasLayer",
        "bbox": [112.00031415896964, 28.2712236676667, 116.73572001366225, 32.34584159702544],
        "width": 626,
        "height": 626,
        "images": []
      },
      "methods": [
        {
          "name": "addTo",
          "params": [
            "''||map"
          ]
        },
        {
          "name": "show",
          "params": []
        }
      ]
    },
    {
      "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": []
        }
      ]
    },
    {
      "id": "建成区",
      "type": "WMSLayer",
      "params": {
        "id": "建成区",
        "url": "http://36.135.21.38:10202/arcgis/rest/services/dh/dh_boundary/MapServer/export",
        "layers":"all:0",
        "F": "image",
        "FORMAT": "PNG32",
        "TRANSPARENT": true,
        "SIZE": "256,256",
        "bboxSR": "3857",
        "IMAGESR": "3857",
        "DPI": "90"
      },
      "methods": [
        {
          "name": "addTo",
          "params": [
            "''||map"
          ]
        }
      ]
    },
    {
      "id": "雨水管网",
      "type": "WMSLayer",
      "params": {
        "id": "雨水管网",
        "url": "http://220.250.29.188:64080/onemap/rest/services/WH_PSXT_4490/MapServer/export",
        "layers": "show:5,6,8,9,11,12,13",
        "access_token": "AT-9-L4Dlop7Ht4JOykR5AmiU85A-MPr734B6",
        "F": "image",
        "FORMAT": "PNG32",
        "TRANSPARENT": true,
        "SIZE": "256,256",
        "bboxSR": "3857",
        "IMAGESR": "3857",
        "DPI": "90"
      },
      "methods": [
        {
          "name": "addTo",
          "params": [
            "''||map"
          ]
        }
      ]
    },
    {
      "id": "污水管网",
      "type": "WMSLayer",
      "params": {
        "id": "污水管网",
        "url": "http://220.250.29.188:64080/onemap/rest/services/WH_PSXT_4490/MapServer/export",
        "layers": "show:19,20,22,23,25,26,27,28",
        "access_token": "AT-9-L4Dlop7Ht4JOykR5AmiU85A-MPr734B6",
        "F": "image",
        "FORMAT": "PNG32",
        "TRANSPARENT": true,
        "SIZE": "256,256",
        "bboxSR": "3857",
        "IMAGESR": "3857",
        "DPI": "90"
      },
      "methods": [
        {
          "name": "addTo",
          "params": [
            "''||map"
          ]
        },
        {
          "name": "hide",
          "params": []
        }
      ]
    },
    {
      "id": "雨水分区",
      "type": "WMSLayer",
      "params": {
        "id": "雨水分区",
        "url": "http://220.250.29.188:64080/onemap/rest/services/WH_GLQY_4490/MapServer/export",
        "layers": "show:2,3,5,6,8,9",
        "access_token": "AT-9-L4Dlop7Ht4JOykR5AmiU85A-MPr734B6",
        "F": "image",
        "FORMAT": "PNG32",
        "TRANSPARENT": true,
        "SIZE": "256,256",
        "bboxSR": "3857",
        "IMAGESR": "3857",
        "DPI": "90"
      },
      "methods": [
        {
          "name": "addTo",
          "params": [
            "''||map"
          ]
        }
      ]
    },
    {
      "id": "污水分区",
      "type": "WMSLayer",
      "params": {
        "id": "污水分区",
        "url": "http://220.250.29.188:64080/onemap/rest/services/WH_GLQY_4490/MapServer/export",
        "layers": "show:12,13,15,16,18,19,21,22",
        "access_token": "AT-9-L4Dlop7Ht4JOykR5AmiU85A-MPr734B6",
        "F": "image",
        "FORMAT": "PNG32",
        "TRANSPARENT": true,
        "SIZE": "256,256",
        "bboxSR": "3857",
        "IMAGESR": "3857",
        "DPI": "90"
      },
      "methods": [
        {
          "name": "addTo",
          "params": [
            "''||map"
          ]
        },
        {
          "name": "hide",
          "params": []
        }
      ]
    }
  ],
  "l7": [
    {
      "id": "hb_wh_gxq_gw",
      "key": "hb_wh_gxq_gw",
      "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 = [\"雨水\", \"污水\", \"合流\"];\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"
    },
    {
      "id": "hb_wh_gxq_road",
      "key": "hb_wh_gxq_road",
      "type": "LineLayer",
      "show": false,
      "params": {
        "autoFit": false,
        "zIndex": 1
      },
      "methods": [
        {
          "name": "size",
          "params": [
            1
          ]
        },
        {
          "name": "shape",
          "params": [
            "line"
          ]
        },
        {
          "name": "active",
          "params": [true]
        },
        {
          "name": "color",
          "params": [
            "type",
            "''||function(v){\n       return '#E09F00';\n      }"
          ]
        }
      ],
      "columns": "id"
    },
    {
      "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": [
            "pipe_type",
            "''||function(v){\n        let key = [\"雨水\", \"污水\", \"合流\"];\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": "point",
      "key": "point",
      "type": "symbol",
      "minzoom": 0,
      "maxzoom": 24,
      "filter": [
        "in",
        "type",
        "",
        "0",
        "雨水泵站",
        "1",
        "2",
        "13",
        "299"
      ],
      "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"
          ],
          "0",
          "0",
          "污水泵站",
          "污水泵站",
          "雨水泵站",
          "雨水泵站",
          "污水处理厂",
          "污水处理厂",
          "1",
          "1",
          "2",
          "2",
          "13",
          "13",
          "299",
          "299",
          "0"
        ],
        "icon-allow-overlap": true,
        "icon-anchor": "center",
        "icon-size": 0.8,
        "text-allow-overlap": true,
        "text-field": "{name}",
        "text-font": [
          "KlokanTech Noto Sans Regular"
        ],
        "text-size": 14,
        "text-line-height": 3,
        "text-anchor": "bottom",
        "text-max-width": 500,
        "text-offset": [
          0,
          3
        ]
      },
      "mType": "geojson"
    }
  ],
  "orders": [
    [
      "point"
    ],
    [
      "all_boundary"
    ],
    [
      "newfiber-CanvasLayer"
    ],

    [
      "poi_label"
    ],
    [
      "place_label_city"
    ],
    [
      "road_major_label"
    ],
    [
      "place_label_other"
    ]
  ],
  "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
      }
    }
  }
}