Find Nearest Vertex Activity

Description

The Find Nearest Vertex activity finds the vertex on the geometry nearest to the specified point.

Offline Support

This activity works when the device is offline.

Inputs

Geometry

Required

Type: esri.Geometry (3.x, 4.x)*

The geometry to consider.

Point

Required

Type: esri.Point (3.x, 4.x)*

The point used to search for the nearest vertex in the geometry.

* Geocortex Workflow uses different versions of Esri's ArcGIS API for JavaScript depending on the type of application. Web AppBuilder 2D apps and Geocortex HTML5 viewers use version 3.x of the JavaScript API. Web AppBuilder 3D apps use version 4.x.

Outputs

point

Type: esri.Point (3.x, 4.x)*

The result point.

distance

Type: Number

The distance to the point.

side

Type: "left" | "right" | String

Whether the point is on the left or right of the line-segment.

index

Type: Number

The index of the vertex.

empty

Type: Boolean

Whether the result is empty.

* Geocortex Workflow uses different versions of Esri's ArcGIS API for JavaScript depending on the type of application. Web AppBuilder 2D apps and Geocortex HTML5 viewers use version 3.x of the JavaScript API. Web AppBuilder 3D apps use version 4.x.

Properties

For information about the ID, Display Name, and Description properties, see Properties Common to all Activities.

Version Information

Supported from: Geocortex Viewer for HTML5 2.9, Web AppBuilder for ArcGIS 2.4.

See Also...

https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Geometry.html

© 2019 Latitude Geographics Group Ltd. All Rights Reserved.

Documentation Version 5.10