-
Notifications
You must be signed in to change notification settings - Fork 819
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
Add icons for popular sports pitches #3651
Changes from 1 commit
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 |
---|---|---|
|
@@ -21,6 +21,7 @@ | |
@landform-color: #d08f55; | ||
@leisure-green: darken(@park, 60%); | ||
@religious-icon: #000000; | ||
@sport-icon: #46a083; | ||
|
||
@landcover-font-size: 10; | ||
@landcover-wrap-width-size: 30; // 3 em | ||
|
@@ -218,6 +219,34 @@ | |
marker-clip: false; | ||
} | ||
|
||
[feature = 'leisure_pitch'][sport = 'baseball'][zoom >= 18] { | ||
marker-file: url('symbols/sport/baseball.svg'); | ||
marker-fill: @sport-icon; | ||
marker-placement: interior; | ||
marker-clip: false; | ||
} | ||
|
||
[feature = 'leisure_pitch'][sport = 'basketball'][zoom >= 19] { | ||
marker-file: url('symbols/sport/basketball.svg'); | ||
marker-fill: @sport-icon; | ||
marker-placement: interior; | ||
marker-clip: false; | ||
} | ||
|
||
[feature = 'leisure_pitch'][sport = 'soccer'][zoom >= 18] { | ||
marker-file: url('symbols/sport/soccer.svg'); | ||
marker-fill: @sport-icon; | ||
marker-placement: interior; | ||
marker-clip: false; | ||
} | ||
|
||
[feature = 'leisure_pitch'][sport = 'tennis'][zoom >= 19] { | ||
marker-file: url('symbols/sport/tennis.svg'); | ||
marker-fill: @sport-icon; | ||
marker-placement: interior; | ||
marker-clip: false; | ||
} | ||
|
||
[feature = 'tourism_artwork'][zoom >= 17] { | ||
[artwork_type != 'statue'] { | ||
marker-file: url('symbols/tourism/artwork.svg'); | ||
|
@@ -2565,10 +2594,17 @@ | |
[feature = 'leisure_ice_rink'], | ||
[feature = 'leisure_pitch'] { | ||
text-fill: darken(@pitch, 40%); | ||
[sport = 'baseball'], | ||
[sport = 'basketball'], | ||
[sport = 'baseball'], | ||
[sport = 'soccer'], | ||
[sport = 'tennis'] { | ||
text-dy: 10; | ||
} | ||
} | ||
} | ||
} | ||
|
||
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. Please remove trailing spaces. 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. I did what @jeisenbe suggested and it didn't work. Maybe you or him can look over it and tell me what I did wrong. SQL isn't really my area of expertise. 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. Not to be a jerk or anything, but does it matter what at all what I feel doing with a PR or not? I was fine with it being rejected if the code was to complicated. Now its extra work that I didn't want to do and @jeisenbe could have done himself in another PR. Since he's the one that suggested it and knows how to do that stuff. It does zero good though if I screw the PR up in the process of trying to implement something I don't have the knowledge how to do. Or I probably would have just done it that way in the first place. I'm lucky I got the icons to render as it was. |
||
[feature = 'natural_bay'][zoom >= 14], | ||
[feature = 'natural_spring'][zoom >= 16] { | ||
text-name: "[name]"; | ||
|
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.
If you add the SQL query as suggested above, you can change this to
[sport != null]
instead of writing up a long list, I think.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.
I agree, it should be safe enough to add generic text-dy, so please change it.