Example #1
0
 private void OnSingleTap(int touchId, Direction side, Vector2 point)
 {
     if (null != SingleTap)
     {
         SingleTap.Invoke(touchId, side, point);
     }
 }
Example #2
0
        /// <summary>
        /// Called, when mouse/finger/pen tapped on map one time
        /// </summary>
        /// <param name="screenPosition">Clicked/touched position on screen</param>
        private bool OnSingleTapped(Geometries.Point screenPosition)
        {
            var args = new TappedEventArgs(screenPosition, 1);

            SingleTap?.Invoke(this, args);

            if (args.Handled)
            {
                return(true);
            }

            return(Map.InvokeInfo(screenPosition, screenPosition, _scale, _renderer.SymbolCache, WidgetTouched, 1));
        }
Example #3
0
        /// <summary>
        /// Called, when mouse/finger/pen tapped on map one time
        /// </summary>
        /// <param name="screenPosition">Clicked/touched position on screen</param>
        /// <returns>True, if the event is handled</returns>
        private bool OnSingleTapped(Geometries.Point screenPosition)
        {
            var args = new TappedEventArgs(screenPosition, 1);

            SingleTap?.Invoke(this, args);

            if (args.Handled)
            {
                return(true);
            }

            var infoToInvoke = InvokeInfo(screenPosition, screenPosition, 1);

            OnInfo(infoToInvoke);
            return(infoToInvoke?.Handled ?? false);
        }
Example #4
0
        /// <summary>
        /// Called, when mouse/finger/pen tapped on map one time
        /// </summary>
        /// <param name="screenPosition">Clicked/touched position on screen</param>
        /// <returns>True, if the event is handled</returns>
        private bool OnSingleTapped(Geometries.Point screenPosition)
        {
            var args = new TappedEventArgs(screenPosition, 1);

            SingleTap?.Invoke(this, args);

            if (args.Handled)
            {
                return(true);
            }

            var eventReturn = InvokeInfo(screenPosition, screenPosition, 1);

            if (eventReturn != null)
            {
                return(eventReturn.Handled);
            }

            return(false);
        }
Example #5
0
        /// <summary>
        /// Called, when mouse/finger/pen tapped on map one time
        /// </summary>
        /// <param name="screenPosition">Clicked/touched position on screen</param>
        /// <returns>True, if the event is handled</returns>
        private bool OnSingleTapped(Geometries.Point screenPosition)
        {
            var args = new TappedEventArgs(screenPosition, 1);

            SingleTap?.Invoke(this, args);

            if (args.Handled)
            {
                return(true);
            }

            var eventReturn = InvokeInfo(Map.Layers, Map.GetWidgetsOfMapAndLayers(), Viewport, screenPosition,
                                         screenPosition, _renderer.SymbolCache, WidgetTouched, 1);

            if (eventReturn != null)
            {
                return(eventReturn.Handled);
            }

            return(false);
        }
Example #6
0
 public override bool OnSingleTapUp(MotionEvent e)
 {
     SingleTap?.Invoke(this, e);
     return(base.OnSingleTapUp(e));
 }