Skip to content

Commit 7c85208

Browse files
committed
yard bubbles
1 parent f7eee12 commit 7c85208

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

import/sql/stations_clustered.sql

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ CREATE MATERIALIZED VIEW IF NOT EXISTS stations_clustered AS
1010
state,
1111
array_agg(facilities.id) as station_ids,
1212
ST_Centroid(ST_ConvexHull(ST_RemoveRepeatedPoints(ST_Collect(way)))) as center,
13-
ST_Buffer(ST_ConvexHull(ST_RemoveRepeatedPoints(ST_Collect(way))), 50) as buffered,
13+
CASE feature
14+
WHEN 'yard' THEN ST_Buffer(ST_RemoveRepeatedPoints(ST_Collect(way)), 10)
15+
ELSE ST_Buffer(ST_ConvexHull(ST_RemoveRepeatedPoints(ST_Collect(way))), 50)
16+
END as buffered,
1417
ST_NumGeometries(ST_RemoveRepeatedPoints(ST_Collect(way))) as count
1518
FROM (
1619
SELECT

proxy/js/styles.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1478,6 +1478,7 @@ const layers = {
14781478
'fill-color': ['case',
14791479
['in', ['get', 'state'], ['literal', ['disused', 'abandoned', 'preserved']]], colors.styles.standard.past,
14801480
['in', ['get', 'state'], ['literal', ['construction', 'proposed']]], colors.styles.standard.future,
1481+
['==', ['get', 'feature'], 'yard'], 'hsl(267 100% 83.5%)',
14811482
['==', ['get', 'station'], 'light_rail'], colors.styles.standard.light_rail,
14821483
['==', ['get', 'station'], 'subway'], colors.styles.standard.subway,
14831484
['==', ['get', 'station'], 'monorail'], colors.styles.standard.monorail,
@@ -1508,6 +1509,7 @@ const layers = {
15081509
filter: ['==', ['get', 'state'], state],
15091510
paint: {
15101511
'line-color': ['case',
1512+
['==', ['get', 'feature'], 'yard'], 'hsl(267 100% 83.5%)',
15111513
// Use outline color of feature, without taking state into account
15121514
['==', ['get', 'station'], 'light_rail'], colors.styles.standard.light_rail,
15131515
['==', ['get', 'station'], 'subway'], colors.styles.standard.subway,

0 commit comments

Comments
 (0)