Block Zoom in GoogleMaps Module

  • Manuel
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 6 months ago #71832 by Manuel
Block Zoom in GoogleMaps Module was created by Manuel
Hi,

is it possible do disable the mouse scroll zoom function?
It is very annoying when you want to scroll down and then you scroll on the map.

Regards,
Manuel

Please Log in or Create an account to join the conversation.

More
9 years 6 months ago #71840 by James Riley
Replied by James Riley on topic Block Zoom in GoogleMaps Module
I think that is a Google Maps thing and not specifically EB. You could google for "disable scroll wheel zoom on embedded map" and implement one of the several suggestions that people have.

James Riley .: EventBooking user since 2014 ::: JoomDonation user since 2016 :.
.: grfx & web design / IT / AV @ St. Therese Institute of Faith and Mission, Bruno, SK, Canada :.

Please Log in or Create an account to join the conversation.

  • Manuel
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 6 months ago - 9 years 6 months ago #71842 by Manuel
Replied by Manuel on topic Block Zoom in GoogleMaps Module
I have found the option to disable the mouse scroll.
You have do edit the helper.php file located in modules/mod_eb_googlemap
In this file i have write "scrollwheel: false," on Line 144 under "center: myHome,"
After editing the code looks like this:
Code:
var mapOptions = { zoom: <?php echo $zoomLevel; ?>, streetViewControl: true, mapTypeControl: true, panControl: true, mapTypeId: google.maps.MapTypeId.ROADMAP, center: myHome, scrollwheel: false, };

Now you can only scroll with the buttons on the map.

regards
Last edit: 9 years 6 months ago by Manuel.
The following user(s) said Thank You: Tuan Pham Ngoc

Please Log in or Create an account to join the conversation.

More
9 years 6 months ago #71849 by James Riley
Replied by James Riley on topic Block Zoom in GoogleMaps Module
Good find :)

James Riley .: EventBooking user since 2014 ::: JoomDonation user since 2016 :.
.: grfx & web design / IT / AV @ St. Therese Institute of Faith and Mission, Bruno, SK, Canada :.

Please Log in or Create an account to join the conversation.

More
9 years 6 months ago #71857 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Block Zoom in GoogleMaps Module
Great. Thanks for sharing Manuel !

Tuan

Please Log in or Create an account to join the conversation.

More
9 years 6 months ago #71960 by Roger D
Replied by Roger D on topic Block Zoom in GoogleMaps Module
Tuan,

Sounds like a great option for Configuration > Theme "Disable Map Scroll Wheel Zoom" instead of having to override code :)

Great find, thank you all!

Roger

Please Log in or Create an account to join the conversation.

More
9 years 6 months ago #71996 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Block Zoom in GoogleMaps Module
OK. I will find sometime to integrate it into the extension. It will be available in the next release (It should be in the download package during this weekend)

Tuan
The following user(s) said Thank You: Roger D

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc