Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#5323 closed defect (wontfix)

OSM website Map Key is missing "cliff"

Reported by: quinn@… Owned by: rails-dev@…
Priority: minor Milestone: Wishlist
Component: website Version:
Keywords: mapkey Cc:


The Map Key on is missing the "cliff" line type item. See screenshot for example:

You can view this map position here.

Change History (5)

comment:1 Changed 5 years ago by Tom Hughes

Resolution: wontfix
Status: newclosed

There are hundreds (maybe even thousands) of different things that we render - only the most common can be included in the key.

comment:2 Changed 5 years ago by quinn@…

Aha, that explains it.

Is there a definitive list of map elements somewhere? It would be great to have a link at the bottom of the Map Key, View all, which goes to a page listing all elements.

comment:3 Changed 5 years ago by Tom Hughes

It's not really that simple - the stylesheet is at but there are over 6500 lines of carto CSS code and a couple of thousand lines in the project.mml file that defines all the database queries used to select features.

I doubt there is anybody who actually knows the complete set of tag combinations that is rendered!

comment:4 Changed 5 years ago by quinn@…

I find that a little hard to believe. The software itself needs to know what map elements exist, in order to offer them as available to be added to the map, and then to render them. The map editor's search features interface lists known items, often including a description and even a photo (see screenshot).

I did find the wiki page of map features, which is mostly what I was looking for (well, at least it has an entry for cliff). The rub is that it is human-generated, so I'm sure it is missing many of the elements defined in those 6500+ lines of css code you mentioned. Programmatically generating a page of all possible features would be pretty cool, and isn't an inconceivably difficult task.

Thanks for your replies and considering the topic.

comment:5 Changed 5 years ago by woodpeck

Automatically creating a legend that is as "nice" as the current, hand-curated one, will be difficult. Some work towards that here but remember it needs to be done differently for each zoom level, and a good legend will also attempt to list the more common and/or more important features first (there may be more residential roads in the picture, but still the motorways are listed first; should a feature common in Chile be listed in the legend when you zoom in on the UK; which features make sense to group; etc.etc.)

Note: See TracTickets for help on using tickets.