Newer
Older
urbanLifeline_YanAn / public / static / libs / mapbox / style / lateWarn.json
@zhangqy zhangqy on 3 Oct 1 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/sprite4"],
    "init": {
      "center": [114.352, 34.802],
      "zoom": 12.8,
      "pitch": 35,
      "style": "/static/libs/mapbox/style/customs/night-style.json"
    }
  },
  "ogc": [
    {
      "id": "newfiber-CanvasLayer",
      "type": "CanvasLayer",
      "params": {
        "id": "newfiber-CanvasLayer",
        "bbox": [113.76310326468648, 30.82704073693232, 114.13002700914065, 31.01100745675831],
        "width": 3000,
        "height": 1172,
        "images": "''||Array(16).fill().map((i,idx)=> `https://server1.wh-nf.cn:9000/newfiber-standard/2024/01/06/step${idx+1}.png`)"
      },
      "methods": [
        {
          "name": "addTo",
          "params": ["''||map"]
        },
        {
          "name": "show",
          "params": []
        }
      ]
    }
  ],
  "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", "ysbz"],
        "text-allow-overlap": false,
        "icon-allow-overlap": false,
        "icon-anchor": "center",
        "icon-size": 0.8,
        "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": [["poi_label"], ["place_label_city"], ["road_major_label"], ["place_label_other"], ["point"]]
}