Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,733,293 Members 39,139 Now Online
XDA Developers Android and Mobile Development Forum

[MOD][XPOSED][4.0+] Map Zoom Invert 1.0

Tip us?
 
bgreco
Old
(Last edited by bgreco; 23rd January 2014 at 03:09 AM.)
#1  
bgreco's Avatar
Junior Member - OP
Thanks Meter 20
Posts: 3
Join Date: Jan 2014
Default [MOD][XPOSED][4.0+] Map Zoom Invert 1.0

Google Map Zoom Invert is an Xposed module that inverts the one-finger zoom gesture in the Google Maps Android app.

Introduction
The Google Maps Android app contains a single-finger zoom gesture: double tap on the map, then slide your finger up or down to zoom. I find this gesture quite handy, so I was quite surprised when a Maps update that rolled out a few months ago inverted the gesture without warning. Now you swipe up to zoom out and down to zoom in. This behavior is frustrating to me not only because I'm used to the old behavior, but because it now behaves opposite of the desktop version of Maps! Scrolling up zooms in on the desktop, but swiping up zooms out on Android.

The Module
This module, once installed, will intercept the single-finger zoom gesture in Google Maps and invert it, restoring the old behavior: swipe up to zoom in, swipe down to zoom out.

Installation
  1. Install the Xposed framework. Your device must be rooted to do this.
  2. Download the Map Zoom Invert module, activate, and reboot. Only install modules if you trust the author!

Compatibility
This module has been tested using Maps 7.5 with CM 10.2 on the Galaxy Nexus and first generation Nexus 7. I imagine it will work on all devices so long as you have a reasonably current version of Maps.

Note that if you have a version of Maps below 7.4, you already have the "old" zoom behavior, so installing this will probably invert the zoom and you'll have the "new" behavior! But I've not tested this.

Source Code
The code used to build this module can be browsed or checked out from http://hg.bgreco.net/xposed/.
If you're interested in how this module works, take a look at GMapZoomInvert.java.

Credits
Many thanks to @rovo89, for creating the Xposed framework that makes this module possible.
The Following 15 Users Say Thank You to bgreco For This Useful Post: [ Click to Expand ]
 
stone_ship
Old
#2  
stone_ship's Avatar
Senior Member
Thanks Meter 176
Posts: 504
Join Date: Jul 2010
Location: Binghamton, NY
This is so fantastic. thank you. I never realized the behavior was changed with the update, I just thought it had it mixed up all along.


Sent from my Nexus 5 using Tapatalk
 
kiwitrc
Old
#3  
kiwitrc's Avatar
Member
Thanks Meter 7
Posts: 38
Join Date: Dec 2010
Thanks!
 
lssong99
Old
#4  
Senior Member
Thanks Meter 42
Posts: 139
Join Date: Jul 2005
Woo! Actually I never noticed GMap has this function. I missed the one hand operation +/- sign in pre-6.4 and were frustrated that it was being removed in 7.0+.
 
okty2k
Old
#5  
Senior Member
Thanks Meter 98
Posts: 499
Join Date: Apr 2010
Great, great thing!
I did not realized until today that indeed, it is Google's fault and I am not stupid.
On the funny side of things, in case Google will go back to old behavior, will the module 'reverse' things? Sorry, it is a little (more) OT, but I could not help myself!

And congrats for making to xda news....
Samsung Galaxy S4 LTE - Stock, rooted KK 4.4.2
Samsung Galaxy S3 - rooted, S4 Revolution 40.0
Samsung Galaxy Tab 10.1 - rooted, Omni ROM
Xperia Arc S - rooted, AORP 4.4.2
Huawei P1 - rooted, RootBox ROM, JB 4.2.2
Desire HD - rooted, VenomROM - retired to pension/backup phone
 
jigglebling
Old
(Last edited by jigglebling; 29th January 2014 at 04:12 AM.)
#6  
Junior Member
Thanks Meter 2
Posts: 2
Join Date: Jun 2012
Just to clarify why Google reversed this feature, it's because Chrome and Maps had opposing gestures for the same zoom feature, now they're the same.

Don't know why you would want to have opposing zoom gestures, but it doesn't hurt to have the option I guess. And not everyone uses Chrome browser.

Could you add the option to reverse Chrome's zoom as well, so they match up?
 
bgreco
Old
#7  
bgreco's Avatar
Junior Member - OP
Thanks Meter 20
Posts: 3
Join Date: Jan 2014
Quote:
Originally Posted by okty2k View Post
Great, great thing!
I did not realized until today that indeed, it is Google's fault and I am not stupid.
On the funny side of things, in case Google will go back to old behavior, will the module 'reverse' things? Sorry, it is a little (more) OT, but I could not help myself!

And congrats for making to xda news....
Thanks for pointing out that xda-news post! I hadn't seen that.

If Google ever switched the gesture back, the zoom would indeed get inverted again!

Quote:
Originally Posted by jigglebling View Post
Just to clarify why Google reversed this feature, it's because Chrome and Maps had opposing gestures for the same zoom feature, now they're the same.

Don't know why you would want to have opposing zoom gestures, but it doesn't hurt to have the option I guess. And not everyone uses Chrome browser.

Could you add the option to reverse Chrome's zoom as well, so they match up?
Ah, that sort of explains the change. I don't use Chrome myself. But then why didn't they invert the Street View portion of Maps as well? Swiping up still causes the image to zoom in... seems rather split-brained to me.

Maybe I'll experiment with doing the same for Chrome... we'll see.
 
dboss007
Old
#8  
Senior Member
Thanks Meter 22
Posts: 117
Join Date: Apr 2010
Quote:
Originally Posted by bgreco View Post
Thanks for pointing out that xda-news post! I hadn't seen that.

If Google ever switched the gesture back, the zoom would indeed get inverted again!



Ah, that sort of explains the change. I don't use Chrome myself. But then why didn't they invert the Street View portion of Maps as well? Swiping up still causes the image to zoom in... seems rather split-brained to me.

Maybe I'll experiment with doing the same for Chrome... we'll see.
Would love to see this!! Could you enable this in the webkit? Reason being, this would work in many apps besides Maps and Chrome. The new underlying webkit in KitKat is Chromium and ANY app that uses the webkit would have this zoom functionality reversed. If you're on KitKat, go into an app that uses a browser and try the double-tap and zoom. Works like a charm! Only it needs reversed.
 
Aleq
Old
#9  
Aleq's Avatar
Senior Member
Thanks Meter 85
Posts: 211
Join Date: Apr 2008
Could you check Google+ Places, please? There's a map, it could use your inverting too
Thanks a lot!
[GUIDE][JB4.2+]Backup/Restore app data of all Multi-User Accounts in Jelly Bean 4.2+
My enhanced/fixed version of Sztupy's ADB FileSystem plugin for Total Commander
CM9+ BatteryMod Theme Holo2

SGS4 (i9505) - Google Edition ROM
Nexus 10 - Stock KitKat
SGS2 (i9100) - CM10.1
B&N naNOOK Tablet - CM10.2
 
kappadappa
Old
#10  
Junior Member
Thanks Meter 7
Posts: 14
Join Date: Apr 2010
Location: New York
Thank you for this! I too didn't realize this behavior was switched in a maps update. I thought I was just screwing up. It's great to have it back to the old behavior again.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes