Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mouse wheel / touchpad pinch support for map zoom #2645

Closed
quasipedia opened this issue Jan 15, 2015 · 3 comments
Closed

Mouse wheel / touchpad pinch support for map zoom #2645

quasipedia opened this issue Jan 15, 2015 · 3 comments
Labels
discuss Feature:Coordinate Map Feature:Visualizations Generic visualization features (in case no more specific feature label is available) release_note:enhancement

Comments

@quasipedia
Copy link

The title says it all pretty much, I guess.

The rationale is that using an integrated mechanism to the pointer is much faster and intuitive than moving the pointer to a button, click, and then pan the map to adjust it in case the zoom was not properly centred.

Currently the map supports double-click, which is better than nothing, but it's a bit clumsy to use, both because is one-direction (zoom-in) only, and because it doesn't work if the desired area is covered by a marker (circle).

@rashidkpc
Copy link
Contributor

I'm personally not a big fan of mouse-wheel to zoom on maps in which the map is not the only thing on the screen and in which a vertical scrollbar is possible in the browser window. The reason being that it becomes quite easily to accidentally zoom the map in if your cursor happens to be over it when try to scroll the page.

The experience becomes even worse in a mobile environment where you can effectively get "stuck" in the map once it takes up the entire window. Mobile browsers will interpret the attempt at scroll as zoom, keeping the user from accessing controls above or below the map.

I think the solution here would be to make double click on circles work correctly.

@rashidkpc rashidkpc added bug Fixes for quality problems that affect the customer experience discuss labels Jan 15, 2015
@quasipedia
Copy link
Author

I see your point, especially the one on mobile devices. It wouldn't be that difficult to implement a responsive map though (i.e.: a map whose zoom behaviour changes according to the type of device issuing the request), right?

The double click doesn't struck me as a good fix for primarily two reasons:

  1. It's not analog. Zoom is a typical analog operation (you may want "WAAAAAAY narrower focus" or perhaps "just a tiny bit more zoom in"). Double click is a digital operation with fixed-size increments. So "WAAAAAAAY narrower focus" translated in a never-ending burst of clicks.
  2. It's mono-directional. If double click produces a zoom-in, what symmetrical physical operation would zoom-out (double-unclick seems difficult to implement! ;))

For the time being, there are also another bunch of bugs (#1442, #1293 and #2054, among others) that make doble-clicking a far too common operation.

I hold that mouse wheel is really the way to go, if for nothing else, because using the mouse wheel is pretty much the standard (Google maps, bing maps, Yahoo maps... they all use mouse wheel for zooming).

However, if the Elasticsearch team is positively against this, a better solution to double clicking would be an overlay slider to drag around to zoom in/out, IMO.

@stormpython stormpython added the Feature:Vislib Vislib chart implementation label Apr 17, 2015
@thomasneirynck thomasneirynck added the Feature:Visualizations Generic visualization features (in case no more specific feature label is available) label Nov 1, 2016
@epixa epixa added release_note:enhancement Feature:Coordinate Map and removed bug Fixes for quality problems that affect the customer experience Feature:Vislib Vislib chart implementation labels Dec 26, 2016
@epixa
Copy link
Contributor

epixa commented Dec 26, 2016

Even though this is much older, I'm going to close this issue in favor of the more recent #7778 since that one has more activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss Feature:Coordinate Map Feature:Visualizations Generic visualization features (in case no more specific feature label is available) release_note:enhancement
Projects
None yet
Development

No branches or pull requests

5 participants