Skip to content

Instantly share code, notes, and snippets.

@srkirkland
Created February 6, 2015 07:25
Show Gist options
  • Save srkirkland/093f043b6f40dd1af915 to your computer and use it in GitHub Desktop.
Save srkirkland/093f043b6f40dd1af915 to your computer and use it in GitHub Desktop.
animate camera
var newPosition = newMarker.Spec.GeoPoint;
var camera = mapView.Camera;
mapView.CameraPositionIdle += MapAnimateForSwipeComplete;
CATransaction.Begin ();
CATransaction.AnimationDuration = 2.0;
mapView.Animate (CameraUpdate.SetTarget (newPosition.ToCLLocationCoordinate2D (), camera.Zoom - 1));
CATransaction.Commit ();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment