UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 2.25 kB
/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.32/esri/copyright.txt for details. */ import{_ as o}from"../../chunks/tslib.es6.js";import t 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 l=class extends t{constructor(o){super(o),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}};o([e({type:Object,json:{write:!0}})],l.prototype,"address",void 0),o([e(a)],l.prototype,"apiKey",void 0),o([e({type:[String],json:{read:{source:"category",reader:o=>o?o.split(","):null},write:{target:"category",writer:(o,t)=>{t.category=o?o.join(","):null}}}})],l.prototype,"categories",void 0),o([e({type:String,json:{write:!0}})],l.prototype,"countryCode",void 0),o([e({type:Boolean,json:{write:!0}})],l.prototype,"forStorage",void 0),o([e({type:p,json:{write:{writer:(o,t)=>{t.location=o?o.clone().normalize():null}}}})],l.prototype,"location",void 0),o([e({type:["rooftop","street"],json:{write:!0}})],l.prototype,"locationType",void 0),o([e({type:String,json:{write:!0}})],l.prototype,"magicKey",void 0),o([e({type:Number,json:{write:!0}})],l.prototype,"maxLocations",void 0),o([e({type:[String],json:{write:{writer:(o,t)=>{t.outFields=o?o.join(","):null}}}})],l.prototype,"outFields",void 0),o([e({type:n,json:{read:{source:"outSR"},write:{target:"outSR"}}})],l.prototype,"outSpatialReference",void 0),o([e({type:i,json:{write:{writer:(o,t)=>{const e=o?o.shiftCentralMeridian():null;t.searchExtent=e}}}})],l.prototype,"searchExtent",void 0),l=o([s("esri.rest.support.AddressToLocationsParameters")],l),l.from=r(l);const c=l;export{c as default};