plepe / OpenStreetBrowser

An application to ‘browse’ the information in the displayed part of the map. Similar to common Wikis and also the main page of http://www.openstreetmap.org the website shows a narrow menu on the left side, most of the page is used for the display of the map. In contrast to most Wikis the menu is not static, but rather the content of the map can be browsed in categories. For the map a special style has been developed (sorry guys, I neither like the default Mapnik nor Osmarender styles), and special overlays are displayed to support the current browsed categories. When you click on an object (either from the list or directly on the map) informations on this object are displayed.
http://www.openstreetbrowser.org
GNU General Public License v3.0
86 stars 20 forks source link

Height display #87

Closed Cybereric closed 5 years ago

Cybereric commented 5 years ago

When I put the tag "height=*" on an object I always put the units (example: 10 m) even if it's optional. I just saw that in this case in OpenStreetBrowser it becomes "mm" as there is already an expected m ! See https://www.openstreetbrowser.org/#buildings-height/w28735810&map=18/47.21229/-1.56537&categories=buildings-height

And there should be a space between the number and the unit: 10m is bad while 10 m is good Height key on the wiki Actually there's no space See https://www.openstreetbrowser.org/#buildings-height/w332647397&map=18/47.21722/-1.55745&categories=buildings-height

plepe commented 5 years ago

You are right. Just fixed this in plepe/openstreetbrowser-categories-main@a715d023219ebe6407ae3f3b0dba1a86d95165df .

It now also supports values in ft (e.g. "40 ft"). For calculating the color it will be converted to meters, but the original value will be shown.

Also, there's now a space. And a "," when both height and building:levels are set.