New home › Forums › Pro Add-on › Using Ctrl key to zoom
This topic contains 8 replies, has 5 voices, and was last updated by bennetcole 1 month, 2 weeks ago.
-
AuthorPosts
-
April 22, 2018 at 9:48 am #37046
Hi, since the search tool of the forums doesn’t work, I want to ask how to activate the Ctrl+scroll button to zoom in/out, rather than using only the scroll button of the mouse. I use the Pro addon. Thanks!
April 23, 2018 at 9:06 am #37062Hi there,
Thank you for getting in touch with us.
Can you please enable “Disable Two-Finger Pan” option under Maps → Settings to see if this helps with CTRL + scroll? Can you also send me the URL to your site so I’ll take a look at this?
Thank you for your time in this.
Best regards,
JarekApril 23, 2018 at 9:12 am #37063Yeap, that worked! Thank you!
April 23, 2018 at 10:59 am #37070Hi there,
I’m glad to hear that. Feel free to reach out if you need anything.
Best
October 22, 2018 at 8:56 am #44072I’ve got the latest updates and the problem reappeared, even though I have disabled the ‘Two finger pan’ option…
October 22, 2018 at 10:33 am #44074Hi there,
Thank you so much for getting back to us.
Could I kindly ask you to provide us with a link to your site so that we may debug this issue further?
I look forward to hearing back from you.
Kindest Regards,
Steven De BeerOctober 23, 2018 at 12:51 pm #44111I also have that problem. I can disable the mousewheel zoom, but then ctrl+mousewheel only zooms the total page. Expected behavior would be the notice on the map to use ctrl + mousewheel to zoom.
Like here: https://developers.google.com/maps/documentation/javascript/adding-a-google-mapOctober 23, 2018 at 2:06 pm #44116Hi there,
Thank you so much for getting in touch, and my sincerest apologies for any inconvenience.
Could I kindly ask you to supply us with a link to your website so that we may take a closer look?
I look forward to helping debug this issue further.
Kindest Regards,
Steven De BeerOctober 23, 2019 at 6:59 am #55233You can use setOnCameraChangeListener. When you stop zooming, you reset the center of the map
map.setOnCameraChangeListener(new OnCameraChangeListener(){ @Override public void onCameraChange(CameraPosition cp) { map.animateCamera(CameraUpdateFactory.newLatLngZoom(point,cp.zoom)); }});
Try it to disable the scrolling : map.getUiSettings().setScrollGesturesEnabled(false); This should disable scrolling without disturb the zooming
-
AuthorPosts
You must be logged in to reply to this topic.