Language

MapControl.TrySetViewAsync メソッド

定義

オーバーロード

Name 説明
TrySetViewAsync(Geopoint, IReference<Double>, IReference<Double>, IReference<Double>, MapAnimationKind)

指定した中心、ズーム レベル、見出し、およびピッチを使用して、 MapControl に表示されるマップのビューを設定します。 ビューの変更では、指定したアニメーションが使用されます。

TrySetViewAsync(Geopoint, IReference<Double>, IReference<Double>, IReference<Double>)

指定した中心、ズーム レベル、見出し、およびピッチを使用して、 MapControl に表示されるマップのビューを設定します。

TrySetViewAsync(Geopoint, IReference<Double>)

指定した中心およびズーム レベルを使用して 、MapControl に表示されるマップのビューを設定します。

TrySetViewAsync(Geopoint)

指定した中心を使用して MapControl に表示されるマップのビューを設定します。

TrySetViewAsync(Geopoint, IReference<Double>, IReference<Double>, IReference<Double>, MapAnimationKind)

指定した中心、ズーム レベル、見出し、およびピッチを使用して、 MapControl に表示されるマップのビューを設定します。 ビューの変更では、指定したアニメーションが使用されます。

public:
 virtual IAsyncOperation<bool> ^ TrySetViewAsync(Geopoint ^ center, IReference<double> ^ zoomLevel, IReference<double> ^ heading, IReference<double> ^ desiredPitch, MapAnimationKind animation) = TrySetViewAsync;
/// [Windows.Foundation.Metadata.Overload("TrySetViewWithCenterZoomHeadingPitchAndAnimationAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> TrySetViewAsync(Geopoint const& center, IReference<double> const& zoomLevel, IReference<double> const& heading, IReference<double> const& desiredPitch, MapAnimationKind const& animation);
[Windows.Foundation.Metadata.Overload("TrySetViewWithCenterZoomHeadingPitchAndAnimationAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> TrySetViewAsync(Geopoint center, System.Nullable<double> zoomLevel, System.Nullable<double> heading, System.Nullable<double> desiredPitch, MapAnimationKind animation);
function trySetViewAsync(center, zoomLevel, heading, desiredPitch, animation)
Public Function TrySetViewAsync (center As Geopoint, zoomLevel As Nullable(Of Double), heading As Nullable(Of Double), desiredPitch As Nullable(Of Double), animation As MapAnimationKind) As IAsyncOperation(Of Boolean)

パラメーター

center
Geopoint

ビューで使用する中心。 詳細については、 Center プロパティを参照してください。

zoomLevel

IReference<Double>

Nullable<Double>

IReference<double>

ビューで使用するズーム レベル。 詳細については、「 ZoomLevel プロパティ」を参照してください。

heading

IReference<Double>

Nullable<Double>

IReference<double>

ビューで使用する見出し。 詳細については、 Heading プロパティを参照してください。

desiredPitch

IReference<Double>

Nullable<Double>

IReference<double>

ビューで使用するピッチ。 詳細については、 DesiredPitch プロパティを参照してください。

animation
MapAnimationKind

ビューを変更するときに使用するアニメーション。 詳細については、「 MapAnimationKind」を参照してください。

返品

非同期操作が成功した場合は true。それ以外の場合は false。

属性

注釈

ピッチとズーム レベルの有効な範囲は、2D、3D、Streetside のマップ ビューで異なります。 たとえば、3D から 2D に切り替えると、現在のビューで許容される値が次のビューで範囲外になることがあります。 その場合、現在のピッチ値は、次のビューで最も近い許容範囲の値に切り捨てられます。

ストリートサイド ビューを終了すると、マップは前のビュー設定に戻ります。 ストリートサイドのピッチは、ストリートサイドの経験の外では維持されていません。

ピッチ/傾斜の最大値と最小値は、マップ ビューの種類 (2D、3D、または Streetside) によって異なります。

プロパティ2D 範囲3D 範囲ストリートサイドの範囲
pitch/tilt0-750 ~ 900-180
ZoomLevel1-201-2024-26

見出しの値が 360 度を超える場合、0 度から 360 度の値に正規化されます。

関連項目

適用対象

TrySetViewAsync(Geopoint, IReference<Double>, IReference<Double>, IReference<Double>)

指定した中心、ズーム レベル、見出し、およびピッチを使用して、 MapControl に表示されるマップのビューを設定します。

public:
 virtual IAsyncOperation<bool> ^ TrySetViewAsync(Geopoint ^ center, IReference<double> ^ zoomLevel, IReference<double> ^ heading, IReference<double> ^ desiredPitch) = TrySetViewAsync;
/// [Windows.Foundation.Metadata.Overload("TrySetViewWithCenterZoomHeadingAndPitchAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> TrySetViewAsync(Geopoint const& center, IReference<double> const& zoomLevel, IReference<double> const& heading, IReference<double> const& desiredPitch);
[Windows.Foundation.Metadata.Overload("TrySetViewWithCenterZoomHeadingAndPitchAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> TrySetViewAsync(Geopoint center, System.Nullable<double> zoomLevel, System.Nullable<double> heading, System.Nullable<double> desiredPitch);
function trySetViewAsync(center, zoomLevel, heading, desiredPitch)
Public Function TrySetViewAsync (center As Geopoint, zoomLevel As Nullable(Of Double), heading As Nullable(Of Double), desiredPitch As Nullable(Of Double)) As IAsyncOperation(Of Boolean)

パラメーター

center
Geopoint

ビューで使用する中心。 詳細については、 Center プロパティを参照してください。

zoomLevel

IReference<Double>

Nullable<Double>

IReference<double>

ビューで使用するズーム レベル。 詳細については、「 ZoomLevel プロパティ」を参照してください。

heading

IReference<Double>

Nullable<Double>

IReference<double>

ビューで使用する見出し。 詳細については、 Heading プロパティを参照してください。

desiredPitch

IReference<Double>

Nullable<Double>

IReference<double>

ビューで使用するピッチ。 詳細については、 DesiredPitch プロパティを参照してください。

返品

非同期操作が成功した場合は true。それ以外の場合は false。

属性

注釈

ピッチ/傾斜の最大値と最小値は、マップ ビューの種類 (2D、3D、または Streetside) によって異なります。

プロパティ2D 範囲3D 範囲ストリートサイドの範囲
pitch/tilt0-750 ~ 900-180
ZoomLevel1-201-2024-26

詳細については、 TrySetViewAsync(Geopoint, IReference(Double), IReference(Double), IReference(Double), MapAnimationKind) オーバーロードを参照してください。

見出しの値が 360 度を超える場合、0 度から 360 度の値に正規化されます。

関連項目

適用対象

TrySetViewAsync(Geopoint, IReference<Double>)

指定した中心およびズーム レベルを使用して 、MapControl に表示されるマップのビューを設定します。

public:
 virtual IAsyncOperation<bool> ^ TrySetViewAsync(Geopoint ^ center, IReference<double> ^ zoomLevel) = TrySetViewAsync;
/// [Windows.Foundation.Metadata.Overload("TrySetViewWithCenterAndZoomAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> TrySetViewAsync(Geopoint const& center, IReference<double> const& zoomLevel);
[Windows.Foundation.Metadata.Overload("TrySetViewWithCenterAndZoomAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> TrySetViewAsync(Geopoint center, System.Nullable<double> zoomLevel);
function trySetViewAsync(center, zoomLevel)
Public Function TrySetViewAsync (center As Geopoint, zoomLevel As Nullable(Of Double)) As IAsyncOperation(Of Boolean)

パラメーター

center
Geopoint

ビューで使用する中心。 詳細については、 Center プロパティを参照してください。

zoomLevel

IReference<Double>

Nullable<Double>

IReference<double>

ビューで使用するズーム レベル。 詳細については、「 ZoomLevel プロパティ」を参照してください。

返品

非同期操作が成功した場合は true。それ以外の場合は false。

属性

注釈

ZoomLevel の最大値と最小値は、マップ ビューの種類 (2D、3D、または Streetside) によって異なります。

プロパティ2D 範囲3D 範囲ストリートサイドの範囲
ZoomLevel1-201-2024-26

ストリートサイド ビューを終了すると、マップは前のビュー設定に戻ります。 Streetside ZoomLevel は、Streetside エクスペリエンスの外部では維持されません。

関連項目

適用対象

TrySetViewAsync(Geopoint)

指定した中心を使用して MapControl に表示されるマップのビューを設定します。

public:
 virtual IAsyncOperation<bool> ^ TrySetViewAsync(Geopoint ^ center) = TrySetViewAsync;
/// [Windows.Foundation.Metadata.Overload("TrySetViewWithCenterAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> TrySetViewAsync(Geopoint const& center);
[Windows.Foundation.Metadata.Overload("TrySetViewWithCenterAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> TrySetViewAsync(Geopoint center);
function trySetViewAsync(center)
Public Function TrySetViewAsync (center As Geopoint) As IAsyncOperation(Of Boolean)

パラメーター

center
Geopoint

ビューで使用する中心。 詳細については、 Center プロパティを参照してください。

返品

非同期操作が成功した場合は true。それ以外の場合は false。

属性

関連項目

適用対象