Maps Show full route / center / Zoom


I trace a route on maps, and i need to center the view for see full route.
Now, i get the First position and the last position for found the center. I get the distance in Kilometers and zoom with this value.

The problème is : If the road is too distorted, or a strange shape, it leaves the framing.

Thanx to you..


  • EderMoisesEderMoises USMember

    Hi Lucas.

    To do what you need, put this code.

    mapView.MoveCamera(CameraUpdate.FitBounds(new CoordinateBounds(Locations1, Locations2)));

Sign In or Register to comment.