Custom Gis Application with Arcgis Javascript API with modern layouting
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

10 lines
3.3 KiB

// All material copyright Esri, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.30/esri/copyright.txt for details.
//>>built
define("../../chunks/tslib.es6 ../../Graphic ../../PopupTemplate ../../symbols ../../core/Clonable ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ../../geometry/Polyline ./networkEnums".split(" "),function(c,g,h,k,b,l,d,p,q,r,m,n,e){var f;b=f=class extends b.ClonableMixin(l.JSONSupport){constructor(a){super(a);this.toLevel=this.symbol=this.popupTemplate=this.objectId=this.geometry=
this.fromLevel=this.duration=this.distance=this.directionPointId=this.directionLineType=null;this.type="direction-line"}static fromGraphic(a){return new f({directionLineType:e.directionLineTypeJsonMap.fromJSON(a.attributes.DirectionLineType),directionPointId:a.attributes.DirectionPointID,distance:a.attributes.Meters,duration:a.attributes.Minutes,fromLevel:a.attributes.FromLevel??null,geometry:a.geometry,objectId:a.attributes.ObjectID??a.attributes.__OBJECTID,popupTemplate:a.popupTemplate,symbol:a.symbol,
toLevel:a.attributes.ToLevel??null})}toGraphic(){const a={ObjectID:this.objectId,DirectionLineType:null!=this.directionLineType?e.directionLineTypeJsonMap.toJSON(this.directionLineType):null,DirectionPointID:this.directionPointId,Meters:this.distance,Minutes:this.duration};null!=this.fromLevel&&(a.FromLevel=this.fromLevel);null!=this.toLevel&&(a.ToLevel=this.toLevel);return new g({geometry:this.geometry,attributes:a,symbol:this.symbol,popupTemplate:this.popupTemplate})}};b.fields=[{name:"ObjectID",
alias:"ObjectID",type:"esriFieldTypeOID"},{name:"DirectionLineType",alias:"Line Type",type:"esriFieldTypeInteger"},{name:"DirectionPointID",alias:"Direction Point ID",type:"esriFieldTypeInteger"},{name:"FromLevel",alias:"From Level",type:"esriFieldTypeInteger"},{name:"Meters",alias:"Meters",type:"esriFieldTypeDouble"},{name:"Minutes",alias:"Minutes",type:"esriFieldTypeDouble"},{name:"ToLevel",alias:"To Level",type:"esriFieldTypeInteger"}];c.__decorate([d.property({type:e.directionLineTypeJsonMap.apiValues,
json:{read:{source:"attributes.DirectionLineType",reader:e.directionLineTypeJsonMap.read}}})],b.prototype,"directionLineType",void 0);c.__decorate([d.property({json:{read:{source:"attributes.DirectionPointID"}}})],b.prototype,"directionPointId",void 0);c.__decorate([d.property({json:{read:{source:"attributes.Meters"}}})],b.prototype,"distance",void 0);c.__decorate([d.property({json:{read:{source:"attributes.Minutes"}}})],b.prototype,"duration",void 0);c.__decorate([d.property({json:{read:{source:"attributes.FromLevel"}}})],
b.prototype,"fromLevel",void 0);c.__decorate([d.property({type:n})],b.prototype,"geometry",void 0);c.__decorate([d.property({json:{read:{source:"attributes.ObjectID"}}})],b.prototype,"objectId",void 0);c.__decorate([d.property({type:h})],b.prototype,"popupTemplate",void 0);c.__decorate([d.property({types:k.symbolTypes})],b.prototype,"symbol",void 0);c.__decorate([d.property({json:{read:{source:"attributes.ToLevel"}}})],b.prototype,"toLevel",void 0);c.__decorate([d.property({readOnly:!0,json:{read:!1}})],
b.prototype,"type",void 0);return b=f=c.__decorate([m.subclass("esri.rest.support.DirectionLine")],b)});