summaryrefslogtreecommitdiff
path: root/test/fixtures/resources/style.json
blob: 858e2de037c97722fda5638e731d82d4e5f68fb0 (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": 8,
  "name": "Test",
  "sources": {
    "vectorsource": {
      "url": "test/fixtures/resources/source_vector.json",
      "type": "vector"
    },
    "rastersource": {
      "url": "test/fixtures/resources/source_raster.json",
      "type": "raster",
      "tileSize": 512
    }
  },
  "sprite": "test/fixtures/resources/sprite",
  "glyphs": "test/fixtures/resources/glyphs.pbf",
  "layers": [{
    "id": "road",
    "type": "symbol",
    "source": "vectorsource",
    "source-layer": "road_label",
    "layout": {
      "text-font": ["Open Sans Regular", "Arial Unicode MS Regular"],
      "text-field": "{name_en}"
    }
  }, {
    "id": "poi",
    "type": "symbol",
    "source": "vectorsource",
    "source-layer": "poi_label",
    "layout": {
      "text-font": ["Open Sans Regular", "Arial Unicode MS Regular"],
      "icon-image": "{maki}_icon"
    }
  }, {
    "id":  "rasterlayer",
    "type": "fill",
    "source": "rastersource"
  }]
}