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 346 forks source link

Event for camera move stopped #661

Closed stesvis closed 4 years ago

stesvis commented 4 years ago

SUMMARY

It is great to have the CameraMoving and CameraMoveStarted events, but in most cases we need to know when the move stopped. I see that CameraChanged has been deprecated, so what can we use now?

DETAILS

For example, I need to get a list of restaurants located within a range from the position on the map. As I drag the map, I consume an API that returns the restaurants near the new center of the map.

CameraMoveStopped += Map_CameraMoveStopped; // or "CameraMoveEnded"

void Map_CameraMoveStopped(object sender, CameraMoveStoppedEventArgs e)
        {
           // handle
        }

PLATFORMS

stesvis commented 4 years ago

Found it: CameraIdled