Delen via


MapControl.TryTiltAsync(Double) Method

Definition

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

public:
 virtual IAsyncOperation<bool> ^ TryTiltAsync(double degrees) = TryTiltAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> TryTiltAsync(double const& degrees);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> TryTiltAsync(double degrees);
function tryTiltAsync(degrees)
Public Function TryTiltAsync (degrees As Double) As IAsyncOperation(Of Boolean)

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.

Attributes

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

Applies to