示例#1
0
        public async void MoveToMapRegion(MapSpan region, bool animate)
        {
            if (Map == null)
            {
                return;
            }

            var animation = animate ? MapAnimationKind.Bow : MapAnimationKind.None;

            await Map.TrySetViewAsync(region.ToLocationCoordinate(), Map.ZoomLevel, Map.Heading, Map.Pitch, animation);
        }