ushahidi / Ushahidi_Web

Ushahidi v2. A platform that allows information collection, visualization and interactive mapping, allowing anyone to submit information through text messaging using a mobile phone, email or web form.
http://www.ushahidi.com
Other
901 stars 624 forks source link

Feature: Easy toggle scroll-wheel zoom on maps #576

Open lbell opened 12 years ago

lbell commented 12 years ago

Default behavior is to zoom map with scroll wheel when hovering over. This is annoying as it causes the map to super-zoom if I happen to be scrolling past it to get to the bottom of the page - and on slow connections causes massive lag.

Current core-hack:

edit /media/OpenLayers.js Line 1383 changed: zoomWheelEnabled:true --> zoomWheelEnabled:false

Would be nice if this were a map setting option persistent through updates.

Bonus Points: Make the map area "select-able" and will zoom with scroll wheel once the element has been clicked.

jetherton commented 12 years ago

I'd suggest making this an option instead of disabling zoom on scroll outright. Zoom on scroll wheel is the standard behavior of many online mapping systems. It's functionality is something I, and I believe many others, have come to expect when working with a map on a computer.

lbell commented 11 years ago

Things have changed... now must change the relevant bit in line 567 from:

zoomWheelEnabled:!0 to zoomWheelEnabled:0

This appears to work anyway...

(And from a usability standpoint, I still submit that fir first time visitors (and even people like me, who begrudgingly spend a lot of time working on the web) the expected behavior of the mousewheel is to scroll down the page. I still find it incredibly annoying when I'm trying to scroll down to see what's below an element, and my curser gets stuck on the element and suddenly zooms the map out the "continental view" -- especially when visiting the site from a developing country with intermittent 0.5G internet access. I know this standard on mapping sites (ie google maps) but I submit that Ushahidi is data display site with a map embedded... and for many deployments, the default extent is the maximum you want/need...

Oooh... how about a setting to limit min/max extents?

Ok... done ranting. Thanks)