MapControl.TryTiltAsync(Double) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.
Property | 2D range | 3D range | Streetside range |
---|---|---|---|
pitch/tilt | 0-75 | 0-90 | 0-180 |