protected override bool DoZoomMap(Leap.Frame frame) { var handPosition = frame.Hands[0].PalmPosition.ToVector3D().ToEsriWebMercatorMapPoint(_map); var zoomCenter = new MapPoint(handPosition.X, handPosition.Y, _map.SpatialReference); var scale = frame.ScaleFactor(StartFrame); if (scale >= 1.2 || scale <= 0.95) { var targetResolution = _startMapResolution / Math.Pow(scale, 8); _map.ZoomToResolution(targetResolution, zoomCenter); return(true); } return(false); }