Skip to content

Commit

Permalink
Adding ref for railway=subway_entrance
Browse files Browse the repository at this point in the history
  • Loading branch information
kocio-pl committed Nov 18, 2016
1 parent be4fea5 commit b890e8f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
4 changes: 2 additions & 2 deletions project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -1373,7 +1373,7 @@
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"Datasource": {
"extent": "-20037508,-20037508,20037508,20037508",
"table": "(SELECT\n way,\n name,\n railway,\n aerialway,\n CASE railway \n WHEN 'station' THEN 1 \n WHEN 'subway_entrance' THEN 3\n ELSE 2\n END\n AS prio\n FROM planet_osm_point\n WHERE railway IN ('station', 'halt', 'tram_stop', 'subway_entrance')\n OR aerialway = 'station'\n ORDER BY prio\n) AS stations",
"table": "(SELECT\n way,\n name,\n ref,\n railway,\n aerialway,\n CASE railway \n WHEN 'station' THEN 1 \n WHEN 'subway_entrance' THEN 3\n ELSE 2\n END\n AS prio\n FROM planet_osm_point\n WHERE railway IN ('station', 'halt', 'tram_stop', 'subway_entrance')\n OR aerialway = 'station'\n ORDER BY prio\n) AS stations",
"geometry_field": "way",
"type": "postgis",
"key_field": "",
Expand All @@ -1399,7 +1399,7 @@
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"Datasource": {
"extent": "-20037508,-20037508,20037508,20037508",
"table": "(SELECT\n way,\n name,\n railway,\n aerialway\nFROM planet_osm_polygon\nWHERE railway IN ('station', 'halt', 'tram_stop')\n OR aerialway = 'station'\n) AS stations_poly",
"table": "(SELECT\n way,\n name,\n ref,\n railway,\n aerialway\nFROM planet_osm_polygon\nWHERE railway IN ('station', 'halt', 'tram_stop')\n OR aerialway = 'station'\n) AS stations_poly",
"geometry_field": "way",
"type": "postgis",
"key_field": "",
Expand Down
2 changes: 2 additions & 0 deletions project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1651,6 +1651,7 @@ Layer:
(SELECT
way,
name,
ref,
railway,
aerialway,
CASE railway
Expand Down Expand Up @@ -1678,6 +1679,7 @@ Layer:
(SELECT
way,
name,
ref,
railway,
aerialway
FROM planet_osm_polygon
Expand Down
11 changes: 11 additions & 0 deletions stations.mss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@
marker-placement: interior;
marker-fill: @transportation-icon;
marker-clip: false;
[zoom >= 19] {
text-name: [ref];
text-face-name: @book-fonts;
text-size: 10;
text-fill: @station-color;
text-dy: 10;
text-halo-radius: @standard-halo-radius * 1.5;
text-halo-fill: @standard-halo-fill;
text-wrap-width: 0;
text-placement: interior;
}
}

[railway = 'station'][zoom >= 12] {
Expand Down

0 comments on commit b890e8f

Please sign in to comment.