Newer
Older
KaiFengPC / public / static / libs / mapbox / style / syntheticDataMain.json
@zhangdeliang zhangdeliang on 23 May 3 KB 初始化项目
{
  "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": [
        113.953,
        30.906
      ],
      "zoom": 13.6,
      "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"
        }
      ]
    }
  },
  "l7": [
    {
      "id": "",
      "key": "highlight_point",
      "type": "PointLayer",
      "show": true,
      "params": {
        "zIndex": 0,
        "blend": "additive"
      },
      "methods": [
        {
          "name": "shape",
          "params": [
            "map_selected"
          ]
        },
        {
          "name": "size",
          "params": [
            20
          ]
        },
        {
          "name": "style",
          "params": [
            {
              "offsets": [
                0,
                0
              ]
            }
          ]
        }
      ]
    }
  ],
  "mapbox": [
    {
      "id": "point",
      "key": "point",
      "type": "symbol",
      "minzoom": 0,
      "maxzoom": 24,
      "filter": [
        "in",
        "type",
        ""
      ],
      "paint": {
        "text-color": "#ffffff"
      },
      "layout": {
        "icon-image": [
          "match",
          [
            "get",
            "type"
          ],
          "warning_monitor",
          "warning_monitor",
          "success_monitor",
          "success_monitor",
          "error_monitor",
          "error_monitor",
          "paiKou",
          "paiKou",
          "YSBZ",
          "paiLaoBeng",
          "drainOutlet",
          "DFHZ2",
          "WSBZ",
          "wsBeng",
          "WSCLC",
          "WSC",
          "orinign",
          "orinign",
          "rainStation",
          "rain",
          "pipeSupervise",
          "rainSupervise",
          "PKsupervise",
          "YQGXMX",
          "waterlog",
          "yiLao",
          "riverLake",
          "KDJZWMX",
          "waterSectionInfo",
          "yuanTous",
          "paiKou_1",
          "paiKou",
          "YSBZ_1",
          "paiLaoBeng",
          "drainOutlet_1",
          "DFHZ2",
          "WSBZ_1",
          "wsBeng",
          "WSCLC_1",
          "WSC",
          "orinign_1",
          "orinign",
          "rainStation_1",
          "rain",
          "pipeSupervise_1",
          "rainSupervise",
          "PKsupervise_1",
          "YQGXMX",
          "waterlog_1",
          "yiLao",
          "riverLake_1",
          "KDJZWMX",
          "waterSectionInfo_1",
          "yuanTou",
          "ysbz"
        ],
        "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": 16,
        "text-line-height": 3,
        "text-anchor": "bottom",
        "text-max-width": 50,
        "text-offset": [
          0,
          -1
        ]
      },
      "mType": "geojson"
    }
  ],
  "orders": [
    [
      "place_label_city"
    ],
    [
      "road_major_label"
    ],
    [
      "place_label_other"
    ],
    [
      "poi_label"
    ],
    [
      "point"
    ]
  ]
}