基本信息
以下是所在类或对象的基本信息。
AMD:
require(["esri/rest/support/PolylineBarrier"], (PolylineBarrier) => { /* code goes here */ });
ESM:
import PolylineBarrier from "@arcgis/core/rest/support/PolylineBarrier";
类:
esri/rest/support/PolylineBarrier
继承: PolylineBarrier > Accessor
自从:用于 JavaScript 4.23 的 ArcGIS API
用法说明
使用 RouteLayer 时限制沿街道网络行驶的折线障碍。
例子:
// Print the number of polyline barriers.
const routeLayer = new RouteLayer({
portalItem: {
id: "69569b47b1e445b8a42ec12feab41ce9"
}
});
await routeLayer.load();
const count = routeLayer.polylineBarriers.length;
console.log(`The route contains ${count} linear barriers`);
// output: "The route contains 2 linear barriers"
// Zoom to first barrier
view.goTo(routeLayer.polylineBarriers[0].geometry)
相关用法
- JavaScript ArcGIS PolylineDrawAction redo事件用法及代码示例
- JavaScript ArcGIS PolylineDrawAction undo事件用法及代码示例
- JavaScript ArcGIS PolylineDrawAction.on用法及代码示例
- JavaScript ArcGIS PolylineDrawAction.mode用法及代码示例
- JavaScript ArcGIS PolylineDrawAction cursor-update事件用法及代码示例
- JavaScript ArcGIS PolylineDrawAction vertex-remove事件用法及代码示例
- JavaScript ArcGIS PolylineDrawAction.undo用法及代码示例
- JavaScript ArcGIS PolylineDrawAction vertex-add事件用法及代码示例
- JavaScript ArcGIS Polyline.paths用法及代码示例
- JavaScript ArcGIS PolylineDrawAction用法及代码示例
- JavaScript ArcGIS PolylineDrawAction draw-complete事件用法及代码示例
- JavaScript ArcGIS PolylineDrawAction.redo用法及代码示例
- JavaScript ArcGIS PolygonDrawAction draw-complete事件用法及代码示例
- JavaScript ArcGIS PolygonDrawAction.mode用法及代码示例
- JavaScript ArcGIS PolygonDrawAction vertex-add事件用法及代码示例
- JavaScript ArcGIS Polygon.rings用法及代码示例
- JavaScript ArcGIS PolygonDrawAction vertex-remove事件用法及代码示例
- JavaScript ArcGIS PolygonDrawAction cursor-update事件用法及代码示例
- JavaScript ArcGIS PolygonDrawAction用法及代码示例
- JavaScript ArcGIS PolygonDrawAction.undo用法及代码示例
- JavaScript ArcGIS PolygonSymbol3D.clone用法及代码示例
- JavaScript ArcGIS PolygonSymbol3D用法及代码示例
- JavaScript ArcGIS PolygonDrawAction.on用法及代码示例
- JavaScript ArcGIS PolygonDrawAction.redo用法及代码示例
- JavaScript ArcGIS PolygonDrawAction redo事件用法及代码示例
注:本文由纯净天空筛选整理自arcgis.com大神的英文原创作品 PolylineBarrier。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。