Newer
Older
KaiFengPC / public / static / libs / mapbox / style / planningcontrolCX.json
@jimengfei jimengfei on 5 Jun 4 KB updata
{
  "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.15,
      "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"
        }
      ]
    }
  },
  "orders": [
    [
      "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"
        ],
        [
          "雨水点"
        ]
      ]
    },
    "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
      }
    }
  },
  "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_text",
      "key": "hubei_xiaogan_hm_psfq",
      "source-layer": "hubei_xiaogan_hm_psfq",
      "filter": [
        "in",
        "type",
        "YS"
      ],
      "type": "symbol",
      "paint": {
        "text-color": "#ffffff",
        "text-halo-color": "rgba(0,0,0,0)",
        "text-halo-width": 1,
        "text-halo-blur": 1
      },
      "layout": {
        "text-field": "{name}",
        "text-font": [
          "KlokanTech Noto Sans Regular"
        ],
        "text-size": 18,
        "text-line-height": 1.5,
        "text-anchor": "top",
        "text-max-width": 50,
        "text-radial-offset": 2
      },
      "minzoom": 14,
      "maxzoom": 24,
      "mType": "mvt_center",
      "columns": "type,name"
    },
    {
      "id": "point",
      "key": "point",
      "type": "symbol",
      "filter": [
        "in",
        "type",
        ""
      ],
      "paint": {
        "text-color": "#ffffff",
        "text-halo-color": "rgba(0,0,0,1)",
        "text-halo-width": 1,
        "text-halo-blur": 1
      },
      "layout": {
        "icon-image": [
          "match",
          [
            "get",
            "type"
          ],
          "success_zishui",
          "ysj",
          "error_zishui",
          "error_zishui",
          "wsj"
        ],
        "icon-allow-overlap": true,
        "text-allow-overlap": true,
        "icon-size": 0.7,
        "text-field": "{name}",
        "text-font": [
          "KlokanTech Noto Sans Regular"
        ],
        "text-size": 13,
        "text-line-height": 1.5,
        "text-anchor": "top",
        "text-max-width": 50,
        "text-justify": "center",
        "text-radial-offset": 2
      },
      "minzoom": 5,
      "maxzoom": 24,
      "mType": "geojson"
    }
  ]
}