amay077 / Xamarin.Forms.GoogleMaps

Map library for Xamarin.Forms using Google maps API
https://www.nuget.org/packages/Xamarin.Forms.GoogleMaps/
MIT License
546 stars 349 forks source link

HOW TO: Determine that a user has moved the camera #574

Closed cbartonnh closed 6 years ago

cbartonnh commented 6 years ago

SUMMARY

This is more of a request for guidance. I need to know that the user has moved the camera vs. the app in order to pause automatic repositioning of the map.

DETAILS

If you look at an app like Waze or Google Maps, if the user drags the map it puts it into a mode that does not keep repositioning the map to the user's location. This allows the user to look around the map freely. After a certain amount of inactivity or if they press the "recenter" button, they are returned to their current location and tracking continues.

Is there a way to tell that the camera move events is due to the user dragging the map? Can you offer a suggestion as to how best to make this work?

And thank you for your efforts on the project. It is great!

PLATFORMS

cbartonnh commented 6 years ago

I found it. CameraMoveStartedEventArgs.IsGesture is exactly what I needed.