@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
6 lines (5 loc) • 1.83 kB
JavaScript
/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
*/
import{_ as t}from"../../chunks/tslib.es6.js";import 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/has.js";import"../../core/RandomLCG.js";import{subclass as s}from"../../core/accessorSupport/decorators/subclass.js";import i from"../../geometry/Extent.js";import p from"../../geometry/Point.js";import n from"../../geometry/SpatialReference.js";import{apiKey as a}from"./commonProperties.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(a)],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:i,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};