Turn off auto-scrolling on google maps
i 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 exampleCorrect Answer
The 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.
This 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 🙂
The topic ‘Turn off auto-scrolling on google maps’ is closed to new replies.