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
 
<!--
A simple query for lanes:
 
blue: nothing mapped
orange: lanes tag exist, but no turn:lanes
green: turn:lanes exists
 
Width of lines depends on number of lanes.
 
-->
 
<osm-script output="json" timeout="25">
  <union>
    <query type="way">
      <has-kv k="highway"/>
      <bbox-query {{bbox}}/>
    </query>
  </union>
  <print mode="body" order="quadtile"/>
  <recurse type="down"/>
  <print mode="skeleton" order="quadtile"/>
</osm-script>
 
 
{{style:
 
/*Default settings for ways*/
way {
  opacity:0.9;
  width:8;
  color:blue;
  }
 
way[oneway][oneway!=no]{
  width:4;
  }
 
way[lanes] {
  color:orange;
  }
 
way[turn:lanes],
way[turn:lanes:backward],
way[turn:lanes:forward]{
  color:green;
  }
 
way[turn:lanes] {
  text: turn:lanes;
  }
way[turn:lanes:forward] {
  text: turn:lanes:forward;
  }
way[turn:lanes:backward] {
  text: turn:lanes:backward;
  }
 
 
 
/*Scale width of way by number of tagged lanes*/
way[lanes] {
  width:eval('tag("lanes")*4');
  }
 
 
/*ways typically without lanes*/
way[highway=~/(platform|proposed|construction|steps|track|footway|cycleway|path|pedestrian|service|razed|abandoned|living_street)/]{
  color:#ddd;
  width:2;
  fill-color:#ddd;
  }
 
 
/*Highlight the active way after clicking*/
way:active {
  color:black;
  }
 
 
 
}}
30 m
Leaflet © OpenStreetMap contributors
1
 
no data loaded yet