geobtaa / geoportal

Big Ten Academic Alliance Geoportal
Other
10 stars 5 forks source link

Change parameter on leaflet.sleep #591

Closed karenmajewicz closed 2 months ago

karenmajewicz commented 2 months ago

The "Click to Wake" function can be unwieldy to use when examining a record and it keeps going back to sleep. One way to improve this might be the hoverToWake parameter. It is currently set to "false", which means that the map will go back to sleep while the user is looking at it. The user can still click on features in the web service, but the overlay button "Click to Wake" gets in the way.

If we change this to "true", it will stay awake while the mouse is over it. You can see the behavior here: http://cliffcloud.github.io/Leaflet.Sleep/

Downside -this might make the map scrolling too prevalent.

ewlarson commented 2 months ago

Update in Geoportal v5.6.0.