More detailed popups

Submitted by plepe on Tue, 09/05/2017 - 08:46

Popups of map features are now much more detailed. A lot of tags (like website, contact email, opening_hours, ...) are parsed, regardless of their category. If a tag is not set, nothing will be shown in the popup. Some information though (like the "cuisine" tag in the screenshot) are not generally parsed, but are restricted to the category.

Example of a gastro object:


Before this improvement

After this improvement

If you want to see how this works, check the file openstreetbrowser-categories-main/popupBody.html. There's also a openstreetbrowser-categories-main/detailsBody.html for the information in the sidebar. Pull requests (or feature suggestions) for improvements and extensions are very welcome!

The files use the TwigJS template language.

This change is heavily inspired by Bexhill-OSM.