/// <summary> /// Called, when map should zoom in /// </summary> /// <param name="screenPosition">Center of zoom in event</param> private bool OnZoomIn(Geometries.Point screenPosition) { var args = new ZoomedEventArgs(screenPosition, ZoomDirection.ZoomIn); Zoomed?.Invoke(this, args); if (args.Handled) { return(true); } // TODO // Perform standard behavior return(true); }
/// <summary> /// Called, when map should zoom out /// </summary> /// <param name="screenPosition">Center of zoom out event</param> private bool OnZoomOut(Geometries.Point screenPosition) { if (Map.ZoomLock) { return(true); } var args = new ZoomedEventArgs(screenPosition, ZoomDirection.ZoomOut); Zoomed?.Invoke(this, args); if (args.Handled) { return(true); } // Perform standard behavior Navigator.ZoomOut(screenPosition); return(true); }