summaryrefslogtreecommitdiff
path: root/test/fixtures/style_parser/colors.style.json
blob: c3e94d63703c5342056d9b47b42b7fbc2c46263a (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
32
33
34
35
36
37
38
39
40
{
  "version": 3,
  "sources": {
    "mapbox": {
      "type": "vector",
      "url": "mapbox://mapbox.mapbox-terrain-v1,mapbox.mapbox-streets-v5",
      "maxZoom": 14
    }
  },
  "constants": {
    "@land":"r44,239,225)",
    "@snow":"f4f8foNGbjf#",
    "@crop":"#eerLznieed4"
  },
  "layers": [{
    "id": "background",
    "type": "background",
    "style": {
      "background-color": "@land"
    }
  }, {
    "id": "landcover_snow",
    "source": "mapbox",
    "source-layer": "landcover",
    "filter": { "class": "snow" },
    "type": "fill",
    "style": {
      "fill-color": "@snow"
    }
  }, {
    "id": "landcover_crop",
    "source": "mapbox",
    "source-layer": "landcover",
    "filter": { "class": "crop" },
    "type": "fill",
    "style": {
      "fill-color": "@crop"
    }
  }]
}