Thursday 28 April 2016

How to stop google maps moving

It's annoying when you have a google map on a website and you try and scroll by it, but end up dragging it on mobile.

Well a solution!

In the gmap.js there is a function call called setOptions, in the parameter passed set 'draggable' : false, and that does the trick.

No comments:

Post a Comment