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
88 stars 20 forks source link

Loading spinner stays on error #158

Open xeruf opened 2 years ago

xeruf commented 2 years ago

It keeps on retrying, despite being rejected with "Too many requests"

image
plepe commented 2 years ago

Yes that's right. It will retry loading up to three times (which is currently hard-coded). Between retry requests, there will be a pause of increasing time.

The relevant code is in module overpass-frontend. You can configure the options with the parameter 'overpassOptions' in OpenStreetBrowser's conf.php.

Here are the relevant options in overpass-frontend: https://github.com/plepe/overpass-frontend/blob/master/src/OverpassFrontend.js#L81

What should be added is a notification to the user, that the request has been blocked and will be retried. Any ideas how this could be displayed? Maybe some status indicator somewhere?

xeruf commented 2 years ago

maybe replace the spinner by red text with the error code?