oskariorg / oskari-docs

Oskari documentation and Node.js app running oskari.org
http://www.oskari.org
Other
9 stars 20 forks source link

Rewriting the map tools #282

Closed ZakarFin closed 1 year ago

ZakarFin commented 2 years ago

We are currently in the process of rewriting the implementations for buttons/controls that are on the map from jQuery to React-based versions. This allows us to improve theme support on these buttons in the future. Previously the controls has been "moved" to a "mobile toolbar" when there is limited screen space for the map. However if there are not that many tools on a map the "mobile toolbar" takes up more space than the buttons on the map. This is a likely case for many embedded maps.

Because of this we are planning on removing the mobile toolbar functionality from the map module. Instead some of the controls will look different on "mobile" than on "desktop" like the "pan buttons" tool will only show a reset button on mobile and zoombar will only show the plus and minus buttons without the bar on mobile.

Current "desktop mode": image

Current "mobile mode": image

More about the new buttons:

The current development for this can be seen on the map-buttons branch

ZakarFin commented 1 year ago

This is included in Oskari 2.10