-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better labels in general #37
base: master
Are you sure you want to change the base?
Changes from all commits
3c871d8
4b03a6b
69d1f9f
dc22431
bf2d01d
8ef1711
4c100bd
4aca8dc
151aac4
e460714
a7f855a
59309cc
77c18cf
348cc23
0d54e6c
c34798e
7c6e5e5
6bda125
9c551ea
002a1f7
a24d5cf
13001e8
0766063
1c2f970
ea1c962
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,60 +22,61 @@ | |
text-dy: 10; | ||
text-wrap-width: 60; | ||
} | ||
[zoom>=7][sov = null] { | ||
text-size: 16; | ||
} | ||
[sov != null] { | ||
text-name: [name] + ' ('+[sov]+')'; | ||
text-size: 12; | ||
} | ||
} | ||
|
||
#boundary_label_low[zoom>=7][zoom<=10] { | ||
text-name: '[name]'; | ||
text-face-name: @medium; | ||
#boundary_label_low[zoom>=6][zoom<=10] { | ||
text-name: [name]; | ||
text-size: 11; | ||
text-face-name: @regular; | ||
text-placement: point; | ||
text-fill: @state_text; | ||
text-halo-fill: @halo; | ||
text-halo-radius: 1; | ||
text-size: 10; | ||
text-wrap-width: 40; | ||
text-margin: 30; | ||
text-wrap-width: 50; | ||
text-label-position-tolerance: 100; | ||
text-margin: 7; | ||
[zoom>=7] { | ||
text-size: 11; | ||
text-wrap-width: 50; | ||
} | ||
[zoom>=8] { | ||
text-size: 13; | ||
text-wrap-width: 65; | ||
text-halo-radius: 2; | ||
text-line-spacing: 1; | ||
} | ||
[zoom>=9] { | ||
text-size: 12; | ||
text-character-spacing: 1; | ||
text-wrap-width: 80; | ||
text-line-spacing: 2; | ||
} | ||
[zoom>=10] { | ||
text-size: 14; | ||
text-face-name: @bold; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. bold by default? |
||
text-size: 18; | ||
text-character-spacing: 2; | ||
text-wrap-width: 100; | ||
text-line-spacing: 2; | ||
text-label-position-tolerance: 200; | ||
} | ||
} | ||
#city[zoom>=5][zoom<=10], | ||
#place_low[type='city'][zoom>=7][zoom<=10], | ||
#place_low[type='town'][zoom>=9][zoom<=10] { | ||
shield-file: url('icon/place/[type].svg'); | ||
shield-name:'[name]'; | ||
shield-name:[name]; | ||
shield-size: 11; | ||
shield-face-name: @regular; | ||
shield-halo-radius: 1; | ||
shield-wrap-width: 50; | ||
shield-fill: @town_text; | ||
shield-halo-fill: @halo; | ||
shield-placement-type: simple; | ||
shield-placements: 'NE,SW,NW,SE,E,W'; | ||
shield-placements: 'NE,SW,NW,SE,E,W,N,S'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A shield plus a north or south position does not seem right to me: the icon will end up in the middle of the name, so the name will likely appear as related to another icon on crowded areas. |
||
shield-text-dy: 2; | ||
shield-text-dx: 6; | ||
shield-unlock-image: true; | ||
shield-min-distance: 10; | ||
[type='town'] { | ||
shield-text-dx: 2; | ||
shield-text-dx: 4; | ||
shield-text-dy: 4; | ||
} | ||
[type='city'] { | ||
shield-line-spacing: -2; | ||
|
@@ -86,15 +87,13 @@ | |
[type='embassy'], [type='capital'] { | ||
shield-fill: @city_text; | ||
shield-face-name: @bold; | ||
shield-size: 13; | ||
[type='embassy'] { | ||
shield-allow-overlap: true; | ||
} | ||
shield-size: 12; | ||
shield-allow-overlap: true; | ||
} | ||
[type='intermediate'] { | ||
shield-face-name: @medium; | ||
shield-fill: @city_text; | ||
shield-size: 12; | ||
shield-size: 11; | ||
} | ||
[ldir!=null] { | ||
shield-placements: '[ldir]'; | ||
|
@@ -105,13 +104,19 @@ | |
[zoom>=9] { | ||
shield-size: 12; | ||
[type='embassy'], [type='capital'], [type='intermediate'] { | ||
shield-size: 15; | ||
shield-size: 17; | ||
shield-placements: 'N'; | ||
shield-text-dy: 8; | ||
} | ||
[type='city'] { | ||
shield-size: 14; | ||
} | ||
} | ||
} | ||
#place[type='city'][zoom>=10], | ||
#place[type='town'][zoom>=10], | ||
#place[type='village'][zoom>=9], | ||
#city[zoom>10], | ||
#place[type='city'][zoom>10], | ||
#place[type='town'][zoom>10], | ||
#place[type='village'][zoom>=11], | ||
#place[type='minor'][zoom>=14] { | ||
text-name: '[name]'; | ||
[lang='fr'] { | ||
|
@@ -120,10 +125,10 @@ | |
text-face-name: @light; | ||
text-placement: point; | ||
text-fill: @village_text; | ||
text-size: 12; | ||
text-size: 11; | ||
text-halo-fill: @halo; | ||
text-halo-radius: 2; | ||
text-wrap-width: 40; | ||
text-wrap-width: 45; | ||
text-label-position-tolerance: 20; | ||
text-character-spacing: 0.1; | ||
text-line-spacing: -2; | ||
|
@@ -132,33 +137,48 @@ | |
[type='town'] { | ||
text-fill: @town_text; | ||
text-face-name: @regular; | ||
text-size: 13; | ||
} | ||
[type='city'] { | ||
text-fill: @city_text; | ||
text-face-name: @medium; | ||
text-size: 14; | ||
} | ||
[type='intermediate'], [type='embassy'], [type='capital'] { | ||
text-face-name: @bold; | ||
text-size:16; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. indentation |
||
} | ||
[type='minor'] { | ||
text-margin: 50; | ||
} | ||
[zoom>=12] { | ||
text-margin: 10; | ||
text-min-padding: 1; | ||
text-size: 13; | ||
[type='city'] { | ||
text-size: 12; | ||
[type='town'] { | ||
text-size: 14; | ||
} | ||
} | ||
[zoom>=13] { | ||
text-size: 14; | ||
[type='city'] { | ||
text-size: 15; | ||
text-size: 16; | ||
} | ||
[type='intermediate'], [type='embassy'], [type='capital'] { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Seems we end up with two rules for this no? |
||
text-size: 18; | ||
} | ||
} | ||
[zoom>=14] { | ||
text-size: 15; | ||
[zoom>=13] { | ||
text-size: 13; | ||
[type='minor'] { | ||
text-size: 10; | ||
} | ||
[type='town'] { | ||
text-size: 15; | ||
} | ||
[type='city'] { | ||
text-size: 17; | ||
} | ||
[type='intermediate'], [type='embassy'], [type='capital'] { | ||
text-size: 19; | ||
} | ||
} | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems we have one extra "capital" column here ;)