summaryrefslogtreecommitdiff
path: root/test/fixtures/styles/road-width.style.json
blob: 76d7b5258c892b1d8a3ed93a96ae5540e9aaf231 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
  "version": 3,
  "sources": {
    "mapbox": {
      "type": "vector",
      "url": "tiles/{z}-{x}-{y}.vector.pbf",
      "tileSize": 512,
      "maxZoom": 14
    }
  },
  "layers": [
    {
      "id": "background",
      "type": "background",
      "style": {
        "background-color": "white"
      }
    },
    {
      "id": "road",
      "source": "mapbox",
      "source-layer": "road",
      "type": "line",
      "style": {
        "line-width": {
          "stops": [[13, 0], [13.999, 0], [14, 4], [14.1, 10], [14.2, 20]]
        }
      }
    }
  ]
}