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

[object Object] #121

Closed IgorEliezer closed 4 years ago

IgorEliezer commented 4 years ago

Some categories are displaying "[object Object]" instead of blank or something that was supposed to be.

Example:

etc.

plepe commented 4 years ago

Thanks for notifying! After some digging, I found the problem. It's a problem in the Twig.js module which has already been resolved on the master branch (there's no release yet). Twig.js returns an object, if the resulting string is empty.

I updated the Twig.js version to the master branch, the problem does not appear any more.

IgorEliezer commented 4 years ago

Thank you.