示例#1
0
        private void OnDoubleClick(
            object sender,
            System.Windows.Input.MouseButtonEventArgs e)
        {
            var viewportPos = e.GetPosition(_nativeMap);
            var pos         = new MsMaps.Location();
            var ok          = _nativeMap.TryViewportPointToLocation(
                viewportPos,
                out pos);

            if (ok)
            {
                _eventMap?.FireDoubleClick(
                    new Xamarin.Forms.Maps.Position(
                        pos.Latitude,
                        pos.Longitude));
                e.Handled = true;
            }
        }