amay077 / Xamarin.Forms.GoogleMaps

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

Pin allow cancel while dragging #732

Open orwo1 opened 3 years ago

orwo1 commented 3 years ago

SUMMARY

I would like to allow some mechanism to cancel or disregard dragging event.

DETAILS

I register to Pin dragging event, and in event handler I would like to give event args: e.Handled=True, so the pin wont actually move. This is usefull when validating pin position, especially if pin is part of polygon and I validate it's shape while user is dragging the pin.

Currently I cannot intervene in dragging. I can only insert my validation after dragging occurred already.

PLATFORMS