-
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。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。