Show / Hide Table of Contents

Method SetViewpointScaleAsync

SetViewpointScaleAsync(Double)

Zooms the map view to the provided scale around its current center point.

Declaration
public Task<bool> SetViewpointScaleAsync(double scale)
Parameters
Type Name Description
System.Double scale

The scale to zoom to. For example, 50000 is a scale of 1:50,000.

Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

True if the zoom animation completed, false if it was interrupted by another view navigation.

Applies to

Platforms and versions
TargetVersions
.NET Windows100.13 - 200.7
.NET Framework100.0 - 200.7
In This Article
Back to top Copyright © 2022 Esri.