Home › Forums › Calendar Products › Events Calendar PRO › Turn off auto-scrolling on google maps
- This topic has 11 replies, 8 voices, and was last updated 11 years, 7 months ago by
Barry.
-
AuthorPosts
-
March 9, 2012 at 6:59 pm #16568
Robert
ParticipantHi guys,
I was wondering how I go about turning off the auto scrolling for the Google imbedded map. I want to set it so that when users scroll down the page they don’t set off the map scrolling at the same time. Do you know what I’m trying to say? Sorry if this is unclear.
March 10, 2012 at 10:42 am #16578Simon
ParticipantI’d like to know this too if possible.
March 12, 2012 at 11:39 am #16614Rob
MemberHey guys. Interesting question; not sure about whether this is doable myself (I’d imagine so), but let me see if Jonah has any ideas when he hits the forums later this afternoon. Stay tuned.
March 12, 2012 at 9:25 pm #16649Jonah
ParticipantHi Robert, not sure about the answer to this one either. I’ll need to ask one of the other devs. Stay tuned.
March 30, 2012 at 6:22 pm #17431Henry
Memberi hate it when i come across a Google map, want to scroll down the webpage as a whole only to find that my blasted Google map zooms-in upon scroll.
i’ve worked with Google maps before and it is certainly do able. Are you using a mapping plugin? or are you embedding Google maps yourself?
You just have to add scrollwheel: false to mapOptions when initialising the map.
For example
March 31, 2012 at 11:21 pm #17464Robert
ParticipantHi Henry,
It’s not a separate plugin but the google maps function on the events plugin itself.
Really appreciate the help. I’ll give it a try and let you know the result.March 31, 2012 at 11:34 pm #17465Robert
ParticipantThe fix is really easy, thanks Henry!
For others with this issue.
Locate the plugin file: the-events-calendar/admin-views/event-map.php
Add the line: scrollwheel: false,
Save and you’re done. Check out the pastebin below to see exactly where to add the code.
http://pastebin.com/weSav9UDApril 1, 2012 at 12:38 am #17466Timothy
ParticipantWorks like a charm! This was bugging me too! thanks for posting the solution.
April 2, 2012 at 10:00 am #17486Henry
MemberGlad it worked :}
April 2, 2012 at 12:47 pm #17496Rob
MemberThank you Henry!
August 22, 2014 at 11:03 pm #693011jrtoy4311
Participanti’m updated and don’t see that file…event-map.php is it now somewhere else?
August 23, 2014 at 6:40 am #693616Barry
MemberThis is a comparatively old thread – while they’re definitely worth reviewing it’s normally best to create a fresh thread of your own if you need further help since, typically, things have changed the answer is often slightly different.
Please do check out our Themer’s Guide in the first instance, though, and if you still require help after that we’ll be happy to assist 🙂
-
AuthorPosts
- The topic ‘Turn off auto-scrolling on google maps’ is closed to new replies.
