Hacker News new | past | comments | ask | show | jobs | submit login

Could someone lend a hand and tell me where can I find OSM Carto tiles legend? As in colors for different tag combinations? I am trying to build something that requires a custom legend.



There's a page dedicated to the current OSM Key on their wiki https://wiki.openstreetmap.org/wiki/Standard_tile_layer/Key.

Is it what you're looking for? Apart from that, the page for each tag will show the corresponding marker or colorcode in the OSM theme.


Thanks, something like that (I have seen that page though), but in a script form (which I didn't find so far). I certainly would not want to have to render a bogus map myself to extract similar images. Maybe I will just scrape it out of the page.


I'm not sure what you mean by "in a script form". In any case, the "authoritative" source of the template served by time.openstreetmap.org is this GitHub: https://github.com/gravitystorm/openstreetmap-carto


In script form=a script that generates a list of tiles with localised terrain names, given a list of tag combinations as on the page you mentioned earlier. I probably have to look better around their repos. Both links you have given so far have already proven useful elsewhere. Maybe I just have to render a map with a bunch of squares and make them into tiles. Thanks anyway!


Out of interest, do non-British English readers understand "Map key" as a synonym for "Legend"? I've always called it a "key" (as a British English speaker) but Americans often don't seem to understand this.


American here, I've heard both "Map Key" (or just key) and "Legend" used interchangeably for map Keys/Legends for as long as I can recall. So I suppose there's more to it than just American vs. British English.


Legend is the more common usage in the US in my experience. Map key, like car park, seems a bit more awkward to American ears but is self-explanatory and obvious in it's meaning.


It's legend for me. Map key might sound more self-explanatory for an English speaker who is not into maps though.


Yes, I am Canadian and that usage seems quite natural to me.


Be that as it may, but REM's "Maps and Legends" is a great song.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: