UNPKG

@arcgis/core

Version:

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

3 lines (2 loc) 2.04 kB
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.8/LICENSE.txt */ import{__decorate as t}from"tslib";import{JSONSupport as o}from"../../core/JSONSupport.js";import{property as e,subclass as r}from"../../core/accessorSupport/decorators.js";import{ensureType as i}from"../../core/accessorSupport/ensureType.js";import s from"../../geometry/Extent.js";import p from"../../geometry/Point.js";import n from"../../geometry/SpatialReference.js";import{apiKey as l}from"./commonProperties.js";let a=class extends o{constructor(t){super(t),this.address=null,this.apiKey=null,this.categories=null,this.countryCode=null,this.forStorage=null,this.location=null,this.locationType=null,this.magicKey=null,this.maxLocations=null,this.outFields=null,this.outSpatialReference=null,this.searchExtent=null}};t([e({type:Object,json:{write:!0}})],a.prototype,"address",void 0),t([e(l)],a.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}}}})],a.prototype,"categories",void 0),t([e({type:String,json:{write:!0}})],a.prototype,"countryCode",void 0),t([e({type:Boolean,json:{write:!0}})],a.prototype,"forStorage",void 0),t([e({type:p,json:{write:{writer:(t,o)=>{o.location=t?t.clone().normalize():null}}}})],a.prototype,"location",void 0),t([e({type:["rooftop","street"],json:{write:!0}})],a.prototype,"locationType",void 0),t([e({type:String,json:{write:!0}})],a.prototype,"magicKey",void 0),t([e({type:Number,json:{write:!0}})],a.prototype,"maxLocations",void 0),t([e({type:[String],json:{write:{writer:(t,o)=>{o.outFields=t?t.join(","):null}}}})],a.prototype,"outFields",void 0),t([e({type:n,json:{read:{source:"outSR"},write:{target:"outSR"}}})],a.prototype,"outSpatialReference",void 0),t([e({type:s,json:{write:{writer:(t,o)=>{const e=t?t.shiftCentralMeridian():null;o.searchExtent=e}}}})],a.prototype,"searchExtent",void 0),a=t([r("esri.rest.support.AddressToLocationsParameters")],a),a.from=i(a);const c=a;export{c as default};