From 73f79d8f12f1a443ae2e963b4450a8750fe6b65a Mon Sep 17 00:00:00 2001 From: User for running Openstreetmap-things Date: Sat, 31 Jan 2015 23:47:00 +0100 Subject: [PATCH] new in the overlay: draw bus stops and show which bus lines depart from there. This isn't a graphically pleasing as it could be, the shieldsymbolizer placement-type list seems to be broken, so all routes are just drawn onto one label as a workaround.. --- styles/mapnik-osm-data/rrze-overlay.xml | 53 ++++++++++- .../mapnik-osm-data/rrzesymbols/bus_stop.svg | 87 +++++++++++++++++++ .../mapnik-osm-data/rrzesymbols/busshield.svg | 37 ++++++++ .../rrzesymbols/busshieldwide.svg | 38 ++++++++ 4 files changed, 214 insertions(+), 1 deletion(-) create mode 100644 styles/mapnik-osm-data/rrzesymbols/bus_stop.svg create mode 100644 styles/mapnik-osm-data/rrzesymbols/busshield.svg create mode 100644 styles/mapnik-osm-data/rrzesymbols/busshieldwide.svg diff --git a/styles/mapnik-osm-data/rrze-overlay.xml b/styles/mapnik-osm-data/rrze-overlay.xml index 0b58242..8242596 100644 --- a/styles/mapnik-osm-data/rrze-overlay.xml +++ b/styles/mapnik-osm-data/rrze-overlay.xml @@ -28,10 +28,49 @@ &maxscale_zoom15; [amenity] = 'bicycle_parking' and ([access] = 'public' or [access] = 'yes' or not [access] != '') - + + + points @@ -82,4 +121,16 @@ &datasource-settings; + + busstop + + + (select way,name,replace(tags->'line',',',';') as line,length(tags->'line') as llength + from &prefix;_point + where highway='bus_stop' or (public_transport='stop_position' and tags->'bus'='yes') + ) as busstop + + &datasource-settings; + + diff --git a/styles/mapnik-osm-data/rrzesymbols/bus_stop.svg b/styles/mapnik-osm-data/rrzesymbols/bus_stop.svg new file mode 100644 index 0000000..305bba2 --- /dev/null +++ b/styles/mapnik-osm-data/rrzesymbols/bus_stop.svg @@ -0,0 +1,87 @@ + + + + + + + + image/svg+xml + + + en + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/styles/mapnik-osm-data/rrzesymbols/busshield.svg b/styles/mapnik-osm-data/rrzesymbols/busshield.svg new file mode 100644 index 0000000..191f35c --- /dev/null +++ b/styles/mapnik-osm-data/rrzesymbols/busshield.svg @@ -0,0 +1,37 @@ + + + + + + + + image/svg+xml + + + + + + + + diff --git a/styles/mapnik-osm-data/rrzesymbols/busshieldwide.svg b/styles/mapnik-osm-data/rrzesymbols/busshieldwide.svg new file mode 100644 index 0000000..2d35392 --- /dev/null +++ b/styles/mapnik-osm-data/rrzesymbols/busshieldwide.svg @@ -0,0 +1,38 @@ + + + + + + + + image/svg+xml + + + + + + + + -- 2.25.1