[styles] Add sport beachvolleyball, chess, skateboard, table_tennis, volleyball, 9pin, 10pin, climbing #2960
Labels
No labels
Accessibility
Accessibility
Address
Address
Android
Android
Android Auto
Android Auto
Android Automotive (AAOS)
Android Automotive (AAOS)
API
API
AppGallery
AppGallery
AppStore
AppStore
Battery and Performance
Battery and Performance
Blocker
Blocker
Bookmarks and Tracks
Bookmarks and Tracks
Borders
Borders
Bug
Bug
Build
Build
CarPlay
CarPlay
Classificator
Classificator
Community
Community
Core
Core
CrashReports
CrashReports
Cycling
Cycling
Desktop
Desktop
DevEx
DevEx
DevOps
DevOps
dev_sandbox
dev_sandbox
Directions
Directions
Documentation
Documentation
Downloader
Downloader
Drape
Drape
Driving
Driving
Duplicate
Duplicate
Editor
Editor
Elevation
Elevation
Enhancement
Enhancement
Epic
Epic
External Map Datasets
External Map Datasets
F-Droid
F-Droid
Fonts
Fonts
Frequently User Reported
Frequently User Reported
Fund
Fund
Generator
Generator
Good first issue
Good first issue
Google Play
Google Play
GPS
GPS
GSoC
GSoC
iCloud
iCloud
Icons
Icons
iOS
iOS
Legal
Legal
Linux Desktop
Linux Desktop
Linux packaging
Linux packaging
Linux Phone
Linux Phone
Mac OS
Mac OS
Map Data
Map Data
Metro
Metro
Navigation
Navigation
Need Feedback
Need Feedback
Night Mode
Night Mode
NLnet 2024-06-281
NLnet 2024-06-281
No Feature Parity
No Feature Parity
Opening Hours
Opening Hours
Outdoors
Outdoors
POI Info
POI Info
Privacy
Privacy
Public Transport
Public Transport
Raw Idea
Raw Idea
Refactoring
Refactoring
Regional
Regional
Regression
Regression
Releases
Releases
RoboTest
RoboTest
Route Planning
Route Planning
Routing
Routing
Ruler
Ruler
Search
Search
Security
Security
Styles
Styles
Tests
Tests
Track Recording
Track Recording
Translations
Translations
TTS
TTS
UI
UI
UX
UX
Walk Navigation
Walk Navigation
Watches
Watches
Web
Web
Wikipedia
Wikipedia
Windows
Windows
Won't fix
Won't fix
World Map
World Map
No milestone
No project
No assignees
2 participants
Due date
No due date set.
Dependencies
No dependencies set.
Reference: organicmaps/organicmaps-tmp#2960
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "add_sports"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
icon sources:
volleyball&beachvolleyball
chess
skateboarding
table_tennis
Thank you for the pull request!
yes, all sources are already in copyright.html.
Sure, I'll do it.
I noticed that the skiing icon is used for leisure=skiing which is only used 3 times.
This should obviously be replaced with sport=skiing, right? It is used 5800 times
Replaced or both should be supported? Are these tags equivalent? We have a mechanism to replace ("normalize") equivalent tags in data/replaced_tags.txt
Not sure about white icons, please check/compare with other icons.
I don't think it is necessary to add leisure=skiing to replaced_tags.txt. It's not listed in wiki and also not widely used.
Todo:
Here is a preview of what the existing sport icons look like without the background circle.
pitch, bowls


archery, soccer, pitch


diving


climbing & swimming


curling, tennis


equestrian & golf


american football


australian football & cricket


basketball


baseball


missing sport: skiing (not rendered in all 3 cases of leisure=skiing, need to change to sport=skiing first)
Better to have only two last commits:
per PR.
And make rebase to avoid conflicts before regenerating.
The best way to avoid rebase conflicts is to remove regenerated commits and then regenerate them again.
I marked them with 'drop' in git rebase -i. Don't know why they are still listed.
Thanks! Cool icons )
@vng do we need to fix something else?
Does it make sense to differentiate these two types? Let's merge them into one to avoid copy-paste. CC @vng
sport-10pin
Well, yes, I'd merge them in categories like:
sport-9pin|sport-10pin
And in types_strings like:
Let's make it simple "Bowling", I doubt that someone will use Nine-pin in the search.
@vng do we need this file if it's completely ignored now?
No we don't.
Sorry, what file? Do you want me to delete it?
@j13m126 No need any actions from your side.
From CI:
bowls-m.svg is deleted, but still present somewhere in mapcss files. Probably in styles-night or vehicle.
bowls-m.svg still present in Icons.mspcss
@j13m126 Please, check Icons.mapcss once again. Tests show that deleted bowls-m.svg still present in mapcss styles.
Thank you for the PR, sport icons definitely needed work :)
I've found a bug, table tennis tables use the generic sports ground icon when mapped as an area:

on osm: https://www.openstreetmap.org/way/975293363
@endim8 Thank you, I fixed it for table-tennis and other sports as well.
@vng bowls-m.svg is gone now.
I also added sport=climbing, as we already got an icon for that. #2956
Great!
yoga-m.svg
also: For consistency, I removed the background circle for gym-m.svg (see screenshot above) as well, as fitness_stations are often close to sport pitches.
gym-m.svg is used for leisure=fitness_station and leisure=fitness_centre.
If you are ok, I would push the updated icons.
yoga and consistent gym looks good to me
fitness_centre is a business, and our general pattern is to use a circled icon for all businesses. It is not critical but may bring more consistency to the map. What do you think? Would it be possible to have two variants of the icon for these two different cases?
Sure, I can do that. But that would also mean we would need two variants of all sport icons. Because every sport could be tagged in combination with sports_centre, which is also a business. Right?
Would you prefer any specific naming scheme?
I don't think that we need 2 versions of sports icons. drinking_water also may be a business, but we don't use circle there.
Let's focus here on sport first. And update/merge PR, its a long story already ..
If we are agree here, I can make final changes to update existing tags and tests.
I am happy with both solutions.
Is there a way to programmatically draw the icon's circle/square, change its color, or do whatever modification we need?
I'm ok to merge all sports first without a circle, but please create a separate issue for it so we can track and improve it later.
There is, and we draw some custom user marks like this (speed cams), but for model POIs better to have static icons.
Final changes. PTAL.
Should these translations go to type.sport.shooting?
Should these translations go to type.sport.swimming?
@ -256,2 +256,4 @@
}, {2, 5}, drule::symbol);
}
/// @todo Check that all of sport=* icons priority is bigger than all of pitch, sport_center, playground.
Classificator::ForEachInSubtree ?
already exists
already exists
@ -256,2 +256,4 @@
}, {2, 5}, drule::symbol);
}
/// @todo Check that all of sport=* icons priority is bigger than all of pitch, sport_center, playground.
more tricky here, someday in next PR