source: josm/trunk/test/data/mapillary.json@ 19026

Last change on this file since 19026 was 17862, checked in by simon04, 4 years ago

fix #17177 - Add support for Mapbox Vector Tile (patch by taylor.smock)

Signed-off-by: Taylor Smock <tsmock@…>

File size: 2.8 KB
Line 
1{
2 "version":8,
3 "name":"Mapillary",
4 "owner":"Mapillary",
5 "id":"mapillary",
6 "sources":{
7 "mapillary-source":{
8 "type":"vector",
9 "tiles":[
10 "https://tiles3.mapillary.com/v0.1/{z}/{x}/{y}.mvt"
11 ],
12 "maxzoom":14
13 },
14 "mapillary-features-source": {
15 "maxzoom": 20,
16 "minzoom": 14,
17 "tiles": [ "https://a.mapillary.com/v3/map_features?tile={z}/{x}/{y}&client_id=_apiKey_&layers=points&per_page=1000" ],
18 "type": "vector"
19 },
20 "mapillary-traffic-signs-source": {
21 "maxzoom": 20,
22 "minzoom": 14,
23 "tiles": [ "https://a.mapillary.com/v3/map_features?tile={z}/{x}/{y}&client_id=_apiKey_&layers=trafficsigns&per_page=1000" ],
24 "type": "vector"
25 }
26 },
27 "layers":[
28 {
29 "filter": [ "==", "pano", 1 ],
30 "id": "mapillary-panos",
31 "type": "circle",
32 "source": "mapillary-source",
33 "source-layer": "mapillary-images",
34 "minzoom": 17,
35 "paint": {
36 "circle-color": "#05CB63",
37 "circle-opacity": 0.5,
38 "circle-radius": 18
39 }
40 },
41 {
42 "id": "mapillary-dots",
43 "type": "circle",
44 "source": "mapillary-source",
45 "source-layer": "mapillary-images",
46 "interactive": true,
47 "minzoom": 14,
48 "paint": {
49 "circle-color": "#05CB63",
50 "circle-radius": 6
51 }
52 },
53 {
54 "id": "mapillary-lines",
55 "type": "line",
56 "source": "mapillary-source",
57 "source-layer": "mapillary-sequences",
58 "minzoom": 6,
59 "paint": {
60 "line-color": "#05CB63",
61 "line-width": 2
62 }
63 },
64 {
65 "id": "mapillary-overview",
66 "type": "circle",
67 "source": "mapillary-source",
68 "source-layer": "mapillary-sequence-overview",
69 "maxzoom": 6,
70 "paint": {
71 "circle-radius": 4,
72 "circle-opacity": 0.6,
73 "circle-color": "#05CB63"
74 }
75 },
76 {
77 "id": "mapillary-features",
78 "type": "symbol",
79 "source": "mapillary-features-source",
80 "source-layer": "mapillary-map-features",
81 "interactive": true,
82 "minzoom": 14,
83 "layout": {
84 "icon-image": "{value}",
85 "icon-allow-overlap": true,
86 "symbol-avoid-edges": true
87 },
88 "paint": {
89 "text-color": "#fff",
90 "text-halo-color": "#000"
91 }
92 },
93 {
94 "id": "mapillary-traffic-signs",
95 "type": "symbol",
96 "source": "mapillary-traffic-signs-source",
97 "source-layer": "mapillary-map-features",
98 "interactive": true,
99 "minzoom": 14,
100 "layout": {
101 "icon-image": "{value}",
102 "icon-allow-overlap": true,
103 "symbol-avoid-edges": true
104 },
105 "paint": {
106 "text-color": "#fff",
107 "text-halo-color": "#000"
108 }
109 }
110 ]
111}
Note: See TracBrowser for help on using the repository browser.