-
Notifications
You must be signed in to change notification settings - Fork 101
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
Missing POI icons #64
Comments
Do you have an idea of how many new maki icons there are compared to the existing sprite? |
OSM liberty defines the following categories in its
And here's the set difference of icons that are in Maki but not in the osm-liberty iconset
Generation code. Could be helpful again in the future: import requests
current_iconset_url = 'https://raw.githubusercontent.com/maputnik/osm-liberty/gh-pages/iconset.json'
r = requests.get(current_iconset_url)
iconset = r.json()
keys = [list(group['svgs'].keys()) for group in iconset['iconGroups']]
iconset_names = [item for sublist in keys for item in sublist]
maki_url = 'https://api.github.com/repos/mapbox/maki/contents/icons'
r = requests.get(maki_url)
res = r.json()
maki_names = [x['name'] for x in res]
# Maki names are hyphenated; iconset names are both hyphenated and underscored
# I'll take the iconset names and change the underscores to hyphens
iconset_names = [x.replace('_', '-') for x in iconset_names]
diff = set(maki_names).difference(iconset_names)
sorted([x for x in diff if not x.endswith('-15.svg')]) |
@kylebarron wow, thanks, super helpful! Used your script to check if there are icon names in our iconset which are not in Maki: 'america-football-11.svg' -> typo (american-football) -> correct typo on our side To Do:
@kylebarron interested in working on any of these points? |
When OSM POI classes and maki icons have different names for the same thing, where do you rename that? I.e. as shown above, there are OSM class names (or at least OpenMapTiles class names) that are different from Maki's names. We're not going to rename the source vector data, so either provide a crosswalk or rename the Maki icons? I guess I'm still a little fuzzy on how to work with Maki. This seems tedious and it's not at the top of my list right now, since my maps won't be POI-focused, though I'd be happy to provide a PR with the script, and I could convert it to be a CLI script. |
Yes, exactly. Download the Maki icon, rename it, upload it here: https://github.com/maputnik/osm-liberty/tree/gh-pages/svgs/svgs_iconset and adapt the https://github.com/maputnik/osm-liberty/blob/gh-pages/iconset.json.
Sure, as you wish. Every contribution would be helpful and welcome. A CLI script would be awesome. |
I'm not sure why it isn't listed as output of the above script, but OpenMapTiles defines osm-liberty/sprites/osm-liberty.json Lines 1514 to 1527 in d4e6b6c
|
The script is comparing Maki icons and the OSM Liberty iconset. If both are using |
Yep, this why the icon is not displayed. I was referring to why the output of the script is not listing toilet. The script is not taking OpenMapTiles classes into account. |
@pathmapper Thanks to guide me to the appropriate repo 😃 town-hall_11.svg is in osm-liberty repository, but it isn't rendered (i.e. in Maputnik or in Project of the month). |
Thank you again 😃 toilet_11.svg is in osm-liberty repository, but the tile need drinking_water_11.svg is in osm-liberty repository, but it isn't rendered. fire_station_11.svg is in osm-liberty repository, but it isn't rendered (i.e. in Maputnik). doctors_11.svg is in osm-liberty repository, but it isn't rendered (i.e. in Maputnik). POI defined in [openmaptiles/layers/poi/mapping.yaml] are not (yet) rendered in OSM Liberty : (https://github.com/openmaptiles/openmaptiles/blob/master/layers/poi/mapping.yaml) # amenity values , see http://taginfo.openstreetmap.org/keys/amenity#values
def_poi_mapping_amenity: &poi_mapping_amenity
- bicycle_parking
- doctors
- ferry_terminal
- fire_station
- motorcycle_parking
- recycling
- toilets # barrier values , see http://taginfo.openstreetmap.org/keys/barrier#values
def_poi_mapping_barrier: &poi_mapping_barrier
- bollard
- cycle_barrier
- gate
- lift_gate
- sally_port
- stile
- toll_booth # landuse values , see http://taginfo.openstreetmap.org/keys/landuse#values
def_poi_mapping_landuse: &poi_mapping_landuse
- basin
- brownfield
- reservoir
- winter_sports # leisure values , see http://taginfo.openstreetmap.org/keys/leisure#values
def_poi_mapping_leisure: &poi_mapping_leisure
- escape_game
- hackerspace
- ice_rink
- sports_centre
- swimming_pool # sport values , see http://taginfo.openstreetmap.org/keys/sport#values
def_poi_mapping_sport: &poi_mapping_sport
- athletics
- boules
- boxing
- climbing
- climbing_adventure
- cycling
- equestrian
- free_flying
- judo
- multi
- orienteering
- paintball
- running
- sailing
- scuba_diving
- shooting # tourism values , see http://taginfo.openstreetmap.org/keys/tourism#values
def_poi_mapping_tourism: &poi_mapping_tourism
- theme_park |
Is there something blocking this? |
Any updates on when the YAML POIs which aren't in OSM Liberty will be added? |
No.
Someone has to sort things out and add the missing icons, PRs welcome. |
Replace dashes with underscores everywhere to match the OpenMapTiles schema. Fix other name inconsistencies with OpenMapTiles (american_football, doctors, toilets). Inonsistency: stroke vs stroked. Apply the Maki naming (stroked). Inspired by issue maputnik#64.
Contributions also for POI subclass welcome, see #119 for an example. |
There are some POIs without an icon, e.g.:
There are some new Maki icons, so it would be good to check if there are any new icons we could use for missing ones:
OpenMapTiles POI layer:
https://github.com/openmaptiles/openmaptiles/tree/master/layers/poi
Maki icons:
https://labs.mapbox.com/maki-icons/
Currently used iconset:
https://github.com/maputnik/osm-liberty/blob/gh-pages/iconset.json
SVGs for the used iconset:
https://github.com/maputnik/osm-liberty/tree/gh-pages/svgs/svgs_iconset
How to add new icons to the sprites used for the style:
https://github.com/maputnik/osm-liberty#icon-design
The text was updated successfully, but these errors were encountered: