Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

Use two fingers to move the map #574

Open
nauman-ullah opened this issue Mar 25, 2018 · 4 comments
Open

Use two fingers to move the map #574

nauman-ullah opened this issue Mar 25, 2018 · 4 comments

Comments

@nauman-ullah
Copy link

I am getting this message " Use two fingers to move the map" on mobile devices on the integration of gmaps.js. Bit explored, and found that

gestureHandling: 'greedy'

is not implemented. Can you please give me any direction how to achieve map movement on mobile devices with a single finger

Regards

@davidcafu412
Copy link

Hi @nomanullahgroupdocs, have you found any solution to this?

@nauman-ullah
Copy link
Author

nauman-ullah commented Jun 23, 2018

@davidcafu412 its simple. Edit gmaps.js

options.zoom = options.zoom || 15;
options.gestureHandling = 'greedy'; // set gestureHandling, as gmap picking default options
options.mapType = options.mapType || 'roadmap';

@davidcafu412
Copy link

@nomanullahgroupdocs Cool. It's been sometime since I looked at my code where I used gmaps.js. But I did something similar to your solution. Instead of editing the gmaps.js, I just assign a value to the gestureHandling property.

gmapTrip.gestureHandling = 'greedy';

Thanks anyways. For sharing. Cheers

@cresuspouh
Copy link

@davidcafu412 #574 (comment) trick did the job. thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants