This is an automated email from the ASF dual-hosted git repository. bchapuis pushed a commit to branch 678-bus in repository https://gitbox.apache.org/repos/asf/incubator-baremaps.git
commit bad99ed7ec7fcddec82343ed0fd470ba7c514c0b Author: Bertil Chapuis <[email protected]> AuthorDate: Wed May 31 23:06:57 2023 +0200 Add bus way and bus stop to basemap --- basemap/layers/highway/highway_dash.js | 5 +++++ basemap/layers/highway/highway_line.js | 5 +++++ basemap/layers/highway/highway_outline.js | 6 ++++++ basemap/layers/point/icon.js | 6 ++++++ 4 files changed, 22 insertions(+) diff --git a/basemap/layers/highway/highway_dash.js b/basemap/layers/highway/highway_dash.js index f5e34a29..82d0d512 100644 --- a/basemap/layers/highway/highway_dash.js +++ b/basemap/layers/highway/highway_dash.js @@ -17,6 +17,11 @@ let directives = [ 'line-color': 'rgb(68, 159, 66)', 'road-width': 1, }, + { + filter: ['==', ['get', 'highway'], 'busway'], + 'line-color': 'rgb(0, 146, 219)', + 'road-width': 1, + }, { filter: [ 'any', diff --git a/basemap/layers/highway/highway_line.js b/basemap/layers/highway/highway_line.js index 251a3be7..367891a2 100644 --- a/basemap/layers/highway/highway_line.js +++ b/basemap/layers/highway/highway_line.js @@ -57,6 +57,11 @@ let directives = [ 'line-color': 'rgb(254, 254, 254)', 'road-width': 8, }, + { + filter: ['==', ['get', 'highway'], 'busway'], + 'line-color': 'rgb(254, 254, 254)', + 'road-width': 8, + }, { filter: ['==', ['get', 'highway'], 'unclassified'], 'line-color': 'rgb(254, 254, 254)', diff --git a/basemap/layers/highway/highway_outline.js b/basemap/layers/highway/highway_outline.js index 7cf935e5..2b38b0aa 100644 --- a/basemap/layers/highway/highway_outline.js +++ b/basemap/layers/highway/highway_outline.js @@ -62,6 +62,12 @@ let directives =[ 'road-gap-width': 8, 'road-width': 2, }, + { + filter: ['==', ['get', 'highway'], 'busway'], + 'line-color': 'rgb(190, 189, 188)', + 'road-gap-width': 8, + 'road-width': 2, + }, { filter: ['==', ['get', 'highway'], 'unclassified'], 'line-color': 'rgb(211, 207, 206)', diff --git a/basemap/layers/point/icon.js b/basemap/layers/point/icon.js index d493f452..042804d6 100644 --- a/basemap/layers/point/icon.js +++ b/basemap/layers/point/icon.js @@ -167,6 +167,12 @@ let directives = [ 'icon-color': 'rgb(0, 146, 219)', 'text-color': 'rgb(0, 146, 219)', }, + { + filter: ['==', ['get', 'highway'], 'bus_stop'], + 'icon-image': 'bus_stop', + 'icon-color': 'rgb(0, 146, 219)', + 'text-color': 'rgb(0, 146, 219)', + }, // Amenity: financial {
