UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

3 lines (2 loc) 2.92 kB
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.8/LICENSE.txt */ import{__decorate as t}from"tslib";import e from"../../core/Collection.js";import{JSONSupport as o}from"../../core/JSONSupport.js";import{property as r,subclass as i}from"../../core/accessorSupport/decorators.js";import{ensureClass as s}from"../../core/accessorSupport/ensureType.js";import p from"../../geometry/Extent.js";import n from"../../geometry/SpatialReference.js";import{fromJSON as l}from"../../geometry/support/jsonUtils.js";import{geometryTypes as y}from"../../geometry/support/typeUtils.js";import m from"../../time/TimeExtent.js";import{writer as u}from"../../core/accessorSupport/decorators/writer.js";var a;let d=a=class extends o{static from(t){return s(a,t)}constructor(t){super(t),this.dpi=96,this.floors=null,this.gdbVersion=null,this.geometry=null,this.geometryPrecision=null,this.height=400,this.historicMoment=null,this.layerIds=null,this.layerOption="top",this.mapExtent=null,this.maxAllowableOffset=null,this.returnFieldName=!0,this.returnGeometry=!1,this.returnM=!1,this.returnUnformattedValues=!0,this.returnZ=!1,this.spatialReference=null,this.timeExtent=null,this.tolerance=null,this.width=400}writeHistoricMoment(t,e){e.historicMoment=t&&t.getTime()}get sublayers(){return this._get("sublayers")??null}set sublayers(t){this._set("sublayers",s(e,t))}};t([r({type:Number,json:{write:!0}})],d.prototype,"dpi",void 0),t([r()],d.prototype,"floors",void 0),t([r({type:String,json:{write:!0}})],d.prototype,"gdbVersion",void 0),t([r({types:y,json:{read:l,write:!0}})],d.prototype,"geometry",void 0),t([r({type:Number,json:{write:!0}})],d.prototype,"geometryPrecision",void 0),t([r({type:Number,json:{write:!0}})],d.prototype,"height",void 0),t([r({type:Date})],d.prototype,"historicMoment",void 0),t([u("historicMoment")],d.prototype,"writeHistoricMoment",null),t([r({type:[Number],json:{write:!0}})],d.prototype,"layerIds",void 0),t([r({type:["top","visible","all","popup"],json:{write:!0}})],d.prototype,"layerOption",void 0),t([r({type:p,json:{write:!0}})],d.prototype,"mapExtent",void 0),t([r({type:Number,json:{write:!0}})],d.prototype,"maxAllowableOffset",void 0),t([r({type:Boolean,json:{write:!0}})],d.prototype,"returnFieldName",void 0),t([r({type:Boolean,json:{write:!0}})],d.prototype,"returnGeometry",void 0),t([r({type:Boolean,json:{write:!0}})],d.prototype,"returnM",void 0),t([r({type:Boolean,json:{write:!0}})],d.prototype,"returnUnformattedValues",void 0),t([r({type:Boolean,json:{write:!0}})],d.prototype,"returnZ",void 0),t([r({type:n,json:{write:!0}})],d.prototype,"spatialReference",void 0),t([r()],d.prototype,"sublayers",null),t([r({type:m,json:{write:!0}})],d.prototype,"timeExtent",void 0),t([r({type:Number,json:{write:!0}})],d.prototype,"tolerance",void 0),t([r({type:Number,json:{write:!0}})],d.prototype,"width",void 0),d=a=t([i("esri.rest.support.IdentifyParameters")],d);const c=d;export{c as default};