-
stops
Collection<Stop>
autocast
Stop 的集合定义了路线的起点、终点、航路点或中断点。
例子:
// Define a route between Cancun Airport and Playa del Carmen with a break at Chichén Itzá. const routeLayer = new RouteLayer({ stops: [ { locationType: "stop", geometry: { x: -86.9074392, y: 21.0847238 } }, // Cancun Airport { locationType: "break", geometry: { x: -88.1331506, y: 20.6354437 } }, // Chichén Itzá { locationType: "stop", geometry: { x: -87.1067159, y: 20.6538687 } } // Playa del Carmen ] });
基本信息
以下是所在类或对象的基本信息。
AMD:
require(["esri/layers/RouteLayer"], (RouteLayer) => { /* code goes here */ });
ESM:
import RouteLayer from "@arcgis/core/layers/RouteLayer";
类:
esri/layers/RouteLayer
继承: RouteLayer > Layer > Accessor
自从:用于 JavaScript 4.23 的 ArcGIS API
用法说明
RouteLayer.stops
函数(或属性)的定义如下:
相关用法
- JavaScript ArcGIS RouteLayer.solve用法及代码示例
- JavaScript ArcGIS RouteLayer.saveAs用法及代码示例
- JavaScript ArcGIS RouteLayer.save用法及代码示例
- JavaScript ArcGIS RouteLayer.opacity用法及代码示例
- JavaScript ArcGIS RouteLayer.visible用法及代码示例
- JavaScript ArcGIS RouteLayer.portalItem用法及代码示例
- JavaScript ArcGIS RouteLayer.effect用法及代码示例
- JavaScript ArcGIS RouteLayer.url用法及代码示例
- JavaScript ArcGIS RouteLayer.minScale用法及代码示例
- JavaScript ArcGIS RouteLayer.maxScale用法及代码示例
- JavaScript ArcGIS RouteLayer.when用法及代码示例
- JavaScript ArcGIS RouteLayer.on用法及代码示例
- JavaScript ArcGIS RouteLayer.fullExtent用法及代码示例
- JavaScript ArcGIS RouteLayer layerview-create事件用法及代码示例
- JavaScript ArcGIS RouteLayer layerview-create-error事件用法及代码示例
- JavaScript ArcGIS RouteLayer用法及代码示例
- JavaScript ArcGIS RouteParameters.findBestSequence用法及代码示例
- JavaScript ArcGIS RouteParameters.travelMode用法及代码示例
- JavaScript ArcGIS RouteParameters.apiKey用法及代码示例
- JavaScript ArcGIS RouteInfo用法及代码示例
- JavaScript ArcGIS RotationVariable用法及代码示例
- JavaScript ArcGIS RotationVariable.clone用法及代码示例
- JavaScript ArcGIS RasterShadedReliefRenderer.clone用法及代码示例
- JavaScript ArcGIS RelationshipQuery.orderByFields用法及代码示例
- JavaScript ArcGIS RasterColormapRenderer.createFromColormap用法及代码示例
注:本文由纯净天空筛选整理自arcgis.com大神的英文原创作品 RouteLayer.stops。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。