Add bus way and bus stop to basemap (#686)
* Add bus way and bus stop to basemap
* Add integration test
diff --git a/basemap/layers/highway/highway_dash.js b/basemap/layers/highway/highway_dash.js
index f5e34a2..82d0d51 100644
--- a/basemap/layers/highway/highway_dash.js
+++ b/basemap/layers/highway/highway_dash.js
@@ -18,6 +18,11 @@
'road-width': 1,
},
{
+ filter: ['==', ['get', 'highway'], 'busway'],
+ 'line-color': 'rgb(0, 146, 219)',
+ 'road-width': 1,
+ },
+ {
filter: [
'any',
['==', ['get', 'highway'], 'cycleway'],
diff --git a/basemap/layers/highway/highway_line.js b/basemap/layers/highway/highway_line.js
index 251a3be..367891a 100644
--- a/basemap/layers/highway/highway_line.js
+++ b/basemap/layers/highway/highway_line.js
@@ -58,6 +58,11 @@
'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)',
'road-width': 4,
diff --git a/basemap/layers/highway/highway_outline.js b/basemap/layers/highway/highway_outline.js
index 7cf935e..2b38b0a 100644
--- a/basemap/layers/highway/highway_outline.js
+++ b/basemap/layers/highway/highway_outline.js
@@ -63,6 +63,12 @@
'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)',
'road-gap-width': 4,
diff --git a/basemap/layers/point/icon.js b/basemap/layers/point/icon.js
index d493f45..042804d 100644
--- a/basemap/layers/point/icon.js
+++ b/basemap/layers/point/icon.js
@@ -167,6 +167,12 @@
'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
{
diff --git a/basemap/tests/integration/chateauneuf-bus/metadata.json b/basemap/tests/integration/chateauneuf-bus/metadata.json
new file mode 100644
index 0000000..04bc28c
--- /dev/null
+++ b/basemap/tests/integration/chateauneuf-bus/metadata.json
@@ -0,0 +1,7 @@
+{
+ "issue": "https://github.com/apache/incubator-baremaps/issues/678",
+ "width": 512,
+ "height": 512,
+ "center": [7.303902, 46.218922],
+ "zoom": 18
+}