private void OnMapTapped(UITapGestureRecognizer recognizer)
        {
            var cgPoint  = recognizer.LocationInView(Control);
            var location = ((MKMapView)Control).ConvertPoint(cgPoint, Control);

            SelectPlaceMap selectPlaceMap = (SelectPlaceMap)Element;

            selectPlaceMap.OnMapTapped(new Position(location.Latitude, location.Longitude));
        }
Exemple #2
0
        private void OnMapClick(object sender, GoogleMap.MapClickEventArgs e)
        {
            SelectPlaceMap selectPlaceMap = (SelectPlaceMap)Element;

            selectPlaceMap.OnMapTapped(new Position(e.Point.Latitude, e.Point.Longitude));
        }