summaryrefslogtreecommitdiff
path: root/metrics/tests/location_indicator/default/style.json
blob: 409b980c53a743b1fa746a489a5133e1413e2503 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
  "version": 8,
  "metadata": {
    "test": {
      "width": 512,
      "height": 256,
      "operations": [
        [
          "addImage",
          "puck_hat",
          "puck_hat.png"
        ],
        [
          "addImage",
          "puck",
          "puck.png"
        ],
        [
          "addImage",
          "puck_shadow",
          "puck_shadow.png"
        ]
      ]
    }
  },
  "sources": {
    "geojson": {
      "type": "geojson",
      "data": {
        "type": "FeatureCollection",
        "features": [
          {
            "type": "Feature",
            "properties": {
            },
            "geometry": {
              "type": "Point",
              "coordinates": [
              139.766707,
                35.693055

              ]
            }
          }
        ]
      }
    }
  },
  "center": [ 139.766707, 35.693055 ],
  "zoom": 16,
  "pitch" : 0,
  "bearing" : 42,
  "sources": {},
  "layers": [
    {
      "id": "background",
      "type": "background",
      "paint": {
        "background-color": "lightseagreen"
      }
    },
    {
      "id": "puck123",
      "type": "circle",
      "source": "geojson",
      "paint": {
        "circle-radius": 40,
        "circle-color" : "rgba(255,0,0,0.1)"
      }
    },
    {
      "id": "puck124",
      "type": "location-indicator",
      "layout" : {
          "bearing-image" : "puck",
          "top-image" : "puck_hat",
          "shadow-image" : "puck_shadow"
      },
      "paint" : {
          "bearing" : 45,
          "perspective-compensation" : 1,
          "image-tilt-displacement" : 6.5,
          "location" : [ 35.693055, 139.766707, 0],
          "accuracy-radius": 90.0,
          "bearing-image-size" : 0.26,
          "top-image-size" : 0.18,
          "shadow-image-size" : 0.2,

          "accuracy-radius-color": "rgba(255,0,0,0.2)",
          "accuracy-radius-border-color": "rgba(255,0,255,0.6)"
      }
    }
  ]
}