Newer
Older
urbanLifeline_YanAn / public / static / libs / mapbox / style / projectIndex.json
@zhangqy zhangqy on 3 Oct 4 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.312,
        34.802
      ],
      "zoom": 12.9,
      "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"
        }
      ]
    }
  },
  "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": 19,
        "tileType": ""
      },
      "methods": [
        {
          "name": "addTo",
          "params": [
            "''||map"
          ]
        },
        {
          "name": "hide",
          "params": []
        }
      ]
    },
    {
      "id": "newfiber-WMTSLayer",
      "type": "WMTSLayer",
      "params": {
        "id": "newfiber-WMTSLayer",
        "url": "https://t{s}.tianditu.gov.cn/img_c/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=c&FORMAT=tiles&TILECOL={x}&TILEROW={y}&TILEMATRIX={z}&tk=5095c97223409ac114493d71ecb9cd87",
        "subdomains": [
          "0",
          "1",
          "2",
          "3",
          "4",
          "5",
          "6",
          "7"
        ]
      },
      "methods": []
    },
    {
      "id": "newfiber-CanvasLayer",
      "type": "CanvasLayer",
      "params": {
        "id": "newfiber-CanvasLayer",
        "bbox": [
          110.98300209463804,
          32.415967161418266,
          111.34992583909221,
          32.599933881244255
        ],
        "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": []
    },
    {
      "id": "newfiber-WMSLayer",
      "type": "WMSLayer",
      "params": {
        "id": "newfiber-WMSLayer",
        "url": "http://server1.wh-nf.cn:8023/geoserver/xiaoganMapServer/wms",
        "layers": "xiaoganMapServer:GKFQ1"
      },
      "methods": []
    }
  ],
  "l7": [
    {
      "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
              ]
            }
          ]
        }
      ]
    }
  ],
  "mapbox": [
    {
      "id": "point",
      "key": "point",
      "type": "symbol",
      "minzoom": 0,
      "maxzoom": 24,
      "filter": [
        "in",
        "type",
        ""
      ],
      "paint": {
        "text-color": "#ffffff"
      },
      "layout": {
        "icon-image": [
          "match",
          [
            "get",
            "type"
          ],
          "HMJZYSQ",
          "haimianSS",
          "HMXDLGC",
          "haimianDL",
          "HMXGYLD",
          "haimianLD",
          "HMXSX",
          "haimianSX",
          "GWPCYXF",
          "haimianGW",
          "GWJBZ",
          "paiLaoBeng",
          "GIS",
          "haimianJC",
          "HMJZYSQ_1",
          "haimianSS",
          "HMXDLGC_1",
          "haimianDL",
          "HMXGYLD_1",
          "haimianLD",
          "HMXSX_1",
          "haimianSX",
          "GWPCYXF_1",
          "haimianGW",
          "GWJBZ_1",
          "paiLaoBeng",
          "GIS_1",
          "haimianJC",
          "ysbz"
        ],
        "text-allow-overlap": true,
        "icon-allow-overlap": true,
        "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"
    }
  ]
}