UNPKG

@doegis/core

Version:

DOE GIS API

3 lines (1 loc) 1.71 kB
import{_ as t}from"../../chunks/tslib.es6.js";import"../../geometry.js";import{JSONSupport as o}from"../../core/JSONSupport.js";import{property as e}from"../../core/accessorSupport/decorators/property.js";import{ensureType as r}from"../../core/accessorSupport/ensureType.js";import"../../core/arrayUtils.js";import{subclass as s}from"../../core/accessorSupport/decorators/subclass.js";import{apiKey as i}from"./commonProperties.js";import p from"../../geometry/Point.js";import n from"../../geometry/SpatialReference.js";import a from"../../geometry/Extent.js";let c=class extends o{constructor(t){super(t),this.apiKey=null,this.categories=null,this.countryCode=null,this.location=null,this.maxSuggestions=null,this.outSpatialReference=null,this.searchExtent=null,this.text=null}};t([e(i)],c.prototype,"apiKey",void 0),t([e({type:[String],json:{read:{source:"category",reader:t=>t?t.split(","):null},write:{target:"category",writer:(t,o)=>{o.category=t?t.join(","):null}}}})],c.prototype,"categories",void 0),t([e({type:String,json:{write:!0}})],c.prototype,"countryCode",void 0),t([e({type:p,json:{write:{writer:(t,o)=>{o.location=t?t.clone().normalize():null}}}})],c.prototype,"location",void 0),t([e({type:Number,json:{write:!0}})],c.prototype,"maxSuggestions",void 0),t([e({type:n,json:{read:{source:"outSR"},write:{target:"outSR"}}})],c.prototype,"outSpatialReference",void 0),t([e({type:a,json:{write:{writer:(t,o)=>{const e=t?t.shiftCentralMeridian():null;o.searchExtent=JSON.stringify(e)}}}})],c.prototype,"searchExtent",void 0),t([e({type:String,json:{write:!0}})],c.prototype,"text",void 0),c=t([s("esri.rest.support.SuggestLocationsParameters")],c),c.from=r(c);const l=c;export{l as default};