Skip to content

Commit

Permalink
Merge pull request gravitystorm#813 from math1985/crossroad-names
Browse files Browse the repository at this point in the history
Crossroad names
  • Loading branch information
gravitystorm committed Sep 5, 2014
2 parents 882f63d + 9c6b161 commit 738a46b
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 25 deletions.
6 changes: 3 additions & 3 deletions project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -1390,18 +1390,18 @@
],
"Datasource": {
"type": "postgis",
"table": " (select way,ref,name\n from planet_osm_point\n where highway='motorway_junction'\n ) as highway_junctions",
"table": " (select way,highway,junction,ref,name\n from planet_osm_point\n where highway='motorway_junction' or highway = 'traffic_signals' or junction = 'yes'\n ) as junctions",
"extent": "-20037508,-20037508,20037508,20037508",
"key_field": "",
"geometry_field": "way",
"dbname": "gis"
},
"id": "highway-junctions",
"id": "junctions",
"class": "",
"srs-name": "900913",
"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",
"advanced": {},
"name": "highway-junctions"
"name": "junctions"
},
{
"geometry": "linestring",
Expand Down
73 changes: 51 additions & 22 deletions roads.mss
Original file line number Diff line number Diff line change
Expand Up @@ -1735,29 +1735,58 @@
}
}

#highway-junctions {
[zoom >= 11] {
ref/text-name: "[ref]";
ref/text-size: 10;
ref/text-fill: #6666ff;
ref/text-min-distance: 2;
ref/text-face-name: @oblique-fonts;
ref/text-halo-radius: 1.5;
[zoom >= 12] {
name/text-name: "[name]";
name/text-size: 9;
name/text-fill: #6666ff;
name/text-dy: -9;
name/text-face-name: @oblique-fonts;
name/text-halo-radius: 1;
name/text-wrap-character: ";";
name/text-wrap-width: 2;
name/text-min-distance: 2;
#junctions {
[highway = 'motorway_junction'] {
[zoom >= 11] {
ref/text-name: "[ref]";
ref/text-size: 10;
ref/text-fill: #6666ff;
ref/text-min-distance: 2;
ref/text-face-name: @oblique-fonts;
ref/text-halo-radius: 1.5;
[zoom >= 12] {
name/text-name: "[name]";
name/text-size: 9;
name/text-fill: #6666ff;
name/text-dy: -9;
name/text-face-name: @oblique-fonts;
name/text-halo-radius: 1;
name/text-wrap-character: ";";
name/text-wrap-width: 2;
name/text-min-distance: 2;
}
[zoom >= 15] {
ref/text-size: 12;
name/text-size: 11;
name/text-dy: -10;
}
}
[zoom >= 15] {
ref/text-size: 12;
name/text-size: 11;
name/text-dy: -10;
}

[junction = 'yes'],
[highway = 'traffic_signals'] {
[zoom >= 14] {
text-name: "[name]";
text-size: 8;
text-fill: black;
text-face-name: @book-fonts;
text-halo-radius: 1;
text-wrap-width: 30;
text-min-distance: 2;
[zoom >= 14] {
text-size: 9;
}
[zoom >= 15] {
text-size: 10;
}
[zoom >= 17] {
text-size: 11;
/* Offset name on traffic_signals on zoomlevels where they are displayed
in order not to hide the icon */
[highway = 'traffic_signals'] {
text-dy: 11;
}
}
}
}
}
Expand Down

0 comments on commit 738a46b

Please sign in to comment.