Skip to content

Commit

Permalink
Merge pull request #6 from Mapotempo/oneway
Browse files Browse the repository at this point in the history
Add oneway road arrow
  • Loading branch information
daliborjanak committed Jan 10, 2020
2 parents 95ee3a5 + 9a1c03a commit 1282599
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 0 deletions.
1 change: 1 addition & 0 deletions icons/oneway.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
76 changes: 76 additions & 0 deletions style.json
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,82 @@
"line-width": {"base": 1.4, "stops": [[4, 2], [6, 1.3], [20, 30]]}
}
},
{
"id": "road_oneway",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "transportation",
"minzoom": 15,
"filter": [
"all",
[
"==",
"oneway",
1
]
],
"layout": {
"symbol-placement": "line",
"icon-image": "oneway",
"symbol-spacing": 200,
"icon-padding": 2,
"icon-rotation-alignment": "map",
"icon-rotate": 0,
"icon-size": {
"stops": [
[
15,
0.5
],
[
19,
1
]
]
}
},
"paint": {
"icon-opacity": 0.5
}
},
{
"id": "road_oneway_opposite",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "transportation",
"minzoom": 15,
"filter": [
"all",
[
"==",
"oneway",
-1
]
],
"layout": {
"symbol-placement": "line",
"icon-image": "oneway",
"symbol-spacing": 200,
"icon-padding": 2,
"icon-rotation-alignment": "map",
"icon-rotate": 180,
"icon-size": {
"stops": [
[
15,
0.5
],
[
19,
1
]
]
}
},
"paint": {
"icon-opacity": 0.5
}
},
{
"id": "highway_motorway_subtle",
"type": "line",
Expand Down

0 comments on commit 1282599

Please sign in to comment.