Forum

Thread tagged as: Question, Problem, Api

Google map integration - disable dragging on mobile?

I have 2 Google maps successfully integrated on a contact page. Just wondered (once map is integrated using Perch), whether anyone knew a solution to stop maps being draggable on mobile?

Thanks

Gary Ward

Gary Ward 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Are you using our default script or your own?

At the moment, I've just embedded the map using standard Perch config - so users can change the address if required through the Perch CMS

Drew McLellan

Drew McLellan 2638 points
Perch Support

The default code for displaying that map on the page doesn't have configuration for doing things like disabling dragging on mobile.

To customise it, you could make a copy of the code and implement your own changes if you wish. See "Using your own map display code" https://docs.grabaperch.com/docs/templates/attributes/type/map/

Thanks for the link Drew - once I get back onto this, will do this very thing.