-
nearestVertices
(geometry, inputPoint, searchRadius, maxVertexCountToReturn)
{Promise<NearestPointResult>}
查找距指定点给定距离内的所有顶点,从最近到最远排序,并将它们作为对象数组返回。
参数:
类型 说明 geometry Geometry要考虑的几何形状。
inputPoint Point测量的起点。
searchRadius Number以视图的空间参考为单位从 inputPoint 搜索的距离。
maxVertexCountToReturn Number返回的最大顶点数。
返回:
类型 说明 Promise<NearestPointResult> 解析为 NearestPointResult 的数组,其中包含距离 inputPoint
最近的顶点。例子:
// Returns an array of the nearest vertices const nearest = await geometryEngineAsync.nearestVertices(boundaryPolygon, point, 500, 2);
基本信息
以下是所在类或对象的基本信息。
AMD:
require(["esri/geometry/geometryEngineAsync"], (geometryEngineAsync) => { /* code goes here */ });
ESM:
import * as geometryEngineAsync from "@arcgis/core/geometry/geometryEngineAsync";
对象:
esri/geometry/geometryEngineAsync
自从:用于 JavaScript 4.0 的 ArcGIS API
用法说明
geometryEngineAsync.nearestVertices
函数(或属性)的定义如下:
相关用法
- JavaScript ArcGIS geometryEngineAsync.nearestVertex用法及代码示例
- JavaScript ArcGIS geometryEngineAsync.overlaps用法及代码示例
- JavaScript ArcGIS geometryEngineAsync.geodesicBuffer用法及代码示例
- JavaScript ArcGIS geometryEngineAsync.intersects用法及代码示例
- JavaScript ArcGIS geometryEngineAsync.symmetricDifference用法及代码示例
- JavaScript ArcGIS geometryEngineAsync.distance用法及代码示例
- JavaScript ArcGIS geometryEngineAsync.intersect用法及代码示例
- JavaScript ArcGIS geometryEngineAsync.planarArea用法及代码示例
- JavaScript ArcGIS geometryEngineAsync.crosses用法及代码示例
- JavaScript ArcGIS geometryEngineAsync.flipHorizontal用法及代码示例
- JavaScript ArcGIS geometryEngineAsync.rotate用法及代码示例
- JavaScript ArcGIS geometryEngineAsync.generalize用法及代码示例
- JavaScript ArcGIS geometryEngineAsync.difference用法及代码示例
- JavaScript ArcGIS geometryEngineAsync.touches用法及代码示例
- JavaScript ArcGIS geometryEngineAsync.disjoint用法及代码示例
- JavaScript ArcGIS geometryEngineAsync.contains用法及代码示例
- JavaScript ArcGIS geometryEngineAsync.buffer用法及代码示例
- JavaScript ArcGIS geometryEngineAsync.within用法及代码示例
- JavaScript ArcGIS geometryEngineAsync.cut用法及代码示例
- JavaScript ArcGIS geometryEngineAsync.union用法及代码示例
- JavaScript ArcGIS geometryEngineAsync.isSimple用法及代码示例
- JavaScript ArcGIS geometryEngineAsync.geodesicDensify用法及代码示例
- JavaScript ArcGIS geometryEngineAsync.densify用法及代码示例
- JavaScript ArcGIS geometryEngineAsync.equals用法及代码示例
- JavaScript ArcGIS geometryEngineAsync.geodesicLength用法及代码示例
注:本文由纯净天空筛选整理自arcgis.com大神的英文原创作品 geometryEngineAsync.nearestVertices。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。