Show / Hide Table of Contents

Method SetViewpointGeometryAsync

| Edit this page View Source

SetViewpointGeometryAsync(Geometry)

Zooms and pans the map view to the extent of the provided geometry.

Declaration
public virtual Task<bool> SetViewpointGeometryAsync(Geometry geometry)
Parameters
Type Name Description
Geometry geometry
Returns
Type Description
Task<bool>

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

Remarks

If the bounding geometry is a point, the map will only pan. If you want to center and zoom on a point, use SetViewpointCenterAsync(MapPoint, double).

| Edit this page View Source

SetViewpointGeometryAsync(Geometry, double)

Zooms and pans the map view to the extent of the provided geometry with additional padding.

Declaration
public virtual Task<bool> SetViewpointGeometryAsync(Geometry geometry, double padding)
Parameters
Type Name Description
Geometry geometry
double padding

The minimum amount of padding around the bounding geometry in pixels.

Returns
Type Description
Task<bool>

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

Remarks

If the bounding geometry is a point, the map will only pan. If you want to center and zoom on a point, use SetViewpointCenterAsync(MapPoint, double).

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX