當前位置: 首頁>>代碼示例 >>用法及示例精選 >>正文


JavaScript ArcGIS UtilityNetworkTrace.flags用法及代碼示例


基本信息

以下是所在類或對象的基本信息。

AMD: require(["esri/widgets/UtilityNetworkTrace"], (UtilityNetworkTrace) => { /* code goes here */ });

ESM: import UtilityNetworkTrace from "@arcgis/core/widgets/UtilityNetworkTrace";

類: esri/widgets/UtilityNetworkTrace

繼承: UtilityNetworkTrace > Widget > Accessor

自從:用於 JavaScript 4.22 的 ArcGIS API

用法說明

UtilityNetworkTrace.flags函數(或屬性)的定義如下:


要加載到小部件中以查找標誌的Map點數組。

默認值:[]

例子:

const unt = new UtilityNetworkTrace({
 view: view,
 showSelectionAttributes: true,
 selectOnComplete: true,
 showGraphicsOnComplete: true,
 selectedTraces: ["{E8D545B8-596D-4656-BF5E-16C1D7CBEC9B}"],
 flags: [
   {
     type: "starting-point",
     mapPoint: {
       spatialReference: { latestWkid: 3857, wkid: 102100 },
       x: -9814829.166046409,
       y: 5127094.1017433
     }
   },
   {
     type: "barrier",
     mapPoint: {
     spatialReference: { latestWkid: 3857, wkid: 102100 },
       x: -9814828.449441982,
       y: 5127089.085566963
     }
   }
 ]
});

相關用法


注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 UtilityNetworkTrace.flags。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。