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

Add button to clear all features #179

Open jidanni opened 1 year ago

jidanni commented 1 year ago

Say the user has loaded his map up like https://www.openstreetbrowser.org/#map=11/42.1514/-87.8913&categories=electric_power,power_routes,railway-infrastructure

Now he wants to clear all the junk he has added.

Therefore there should be a button to clear all the items he has added, to get back to the https://www.openstreetbrowser.org/#map=11/42.1514/-87.8913 state, without him needing to remove the items one at a time.

plepe commented 1 year ago

All these categories get closed, if you close the top category "Infrastructure".

Anyway, such a button might be a got addition. Do you have a suggestion, where I should place such a button? Could you come up with a mock-up?

jidanni commented 1 year ago

https://gis.stackexchange.com/questions/343102/openlayers-remove-all-layers-of-map-apart-from-base-map-layer maybe is useful.

Here is such a button, Screenshot_20230602_085801_Chrome Beta.jpg

Maybe use a layers icon with an X on it.

Or a big C like in a calculator.

With a mouseover saying "clear all extra layers".