-
AuthorPosts
-
May 14, 2015 at 5:36 am #273453
twobeansParticipantHi there,
I would like to stop google map zooming in with mouse wheel, but retain the rest of the functionalities, map marker and map marker box, manual zoom, etc. I can stop map zooming with CSS, but my code freezes the whole map and removes mentioned functionalities. Is there a code to stop just the mouse wheel zoom?
W: http://twobeans.ie/index.php/contact/
X: v. 3.2.3
WP: v. 4.2.2Many Thanks in advance,
BobbyMay 14, 2015 at 6:47 am #273510
Paul RModeratorHi Bobby,
To prevent scroll, you can add this under Custom > CSS in the Customizer.
.page-id-617 #x-content-band-5 .x-map .x-map-inner iframe { pointer-events: none; }Hope that helps.
May 15, 2015 at 3:55 am #274222
twobeansParticipantAwesome! Works like a dream. Thanks a million.
May 15, 2015 at 3:58 am #274224
Rue NelModeratorYou are most welcome!
We are super glad it worked out for you.If there’s anything else, we can help you with, please let us know.
May 15, 2015 at 4:17 am #274230
twobeansParticipantAhh – Sorry, jumped the gun there! Thats what I meant by “I can stop map zooming with CSS, but my code freezes the whole map and removes mentioned functionalities.” – if you check my map now, you will see that +/- and directions link are also disabled. Is there a way to stop JUST the mouse wheel? Thanks!
May 15, 2015 at 4:29 am #274234
Rue NelModeratorHello There,
Please try to edit your contact page and change the zoom control of your Google Map settings.

This allows to disable the zoom control of the map.
Hope this helps.
May 15, 2015 at 4:59 am #274243
twobeansParticipantHi, sorry I don’t have that setting. I use “map” widget within column where I have inserted an iframe. Tried using ‘Google map” but its not rendering the address correctly, hence using an iframe.
May 15, 2015 at 5:33 am #274263
ZeshanMemberHi there,
If you are using an iframe, unfortunately, it’s not possible to disable the zoom on an iframe. It’s only possible if you are using advanced [google_map] shortcode: http://theme.co/x/demo/integrity/1/shortcodes/map/
Thanks!
May 15, 2015 at 5:35 am #274265
twobeansParticipantOK Thanks.
May 15, 2015 at 5:51 am #274273
Paul RModeratorYou’re welcome!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-273453 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
