More detailed popups

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.

Comments

need more details

really got full details

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.