MapControl.TryTiltAsync(Double) MapControl.TryTiltAsync(Double) MapControl.TryTiltAsync(Double) MapControl.TryTiltAsync(Double) Method

Definition

Starts an asynchronous operation to tilt the map's camera from its current position.

public : IAsyncOperation<Platform::Boolean> TryTiltAsync(double degrees)
IAsyncOperation<bool> TryTiltAsync(double degrees) const;
public IAsyncOperation<bool> TryTiltAsync(Double degrees)
Public Function TryTiltAsync(degrees As Double) As IAsyncOperation(Of bool)

Parameters

degrees
Double Double

The degrees of Pitch that the map's camera tilts down to the ground.

Returns

Contains the results of the operation: true if the operation completed successfully; otherwise, false.

Remarks

Consider this method when you want to replace the default UI control with your own.

The valid range of tilt differs between 2D, 3D, and Streetside map views. When switching from 3D to 2D for example, values that are acceptable in the current view may be out of range in the next view. If that’s the case, the current tilt value will be truncated to the nearest acceptable value in the next view.

When leaving a Streetside view, the map returns to the previous view settings. The Streetside pitch is not maintained outside of the Streetside experience.

The maximum and minimum values of pitch/tilt depend on the type of map view: 2D, 3D, or Streetside.

Property2D range3D rangeStreetside range
pitch/tilt0-750-900-180