@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
3 lines (2 loc) • 2.41 kB
JavaScript
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.8/LICENSE.txt */
import{__decorate as e}from"tslib";import{clone as t}from"../../core/lang.js";import{property as o,subclass as i}from"../../core/accessorSupport/decorators.js";import s from"./SearchSource.js";import{getResults as l,getSuggestions as r}from"./support/locatorUtils.js";var a;let n=a=class extends s{constructor(e){super(e),this.apiKey=null,this.categories=null,this.countryCode=null,this.defaultZoomScale=null,this.localSearchDisabled=!1,this.language=null,this.locationType=null,this.name="",this.placeholder="",this.searchTemplate="",this.singleLineFieldName=null,this.suggestionsEnabled=null,this.url=null,this.zoomScale=null,this.getResults=(e,t)=>l({source:this,...e},t),this.getSuggestions=(e,t)=>r({source:this,...e},t)}clone(){return new a({apiKey:this.apiKey,autoNavigate:this.autoNavigate,categories:this.categories?t(this.categories):null,countryCode:this.countryCode,filter:this.filter,language:this.language,locationType:this.locationType,maxResults:this.maxResults,maxSuggestions:this.maxSuggestions,minSuggestCharacters:this.minSuggestCharacters,outFields:this.outFields?t(this.outFields):null,placeholder:this.placeholder,popupEnabled:this.popupEnabled,prefix:this.prefix,resultGraphicEnabled:this.resultGraphicEnabled,resultSymbol:this.resultSymbol?.clone()??null,searchTemplate:this.searchTemplate,singleLineFieldName:this.singleLineFieldName,suffix:this.suffix,suggestionsEnabled:this.suggestionsEnabled,url:this.url,withinViewEnabled:this.withinViewEnabled,zoomScale:this.zoomScale})}};e([o()],n.prototype,"apiKey",void 0),e([o()],n.prototype,"categories",void 0),e([o()],n.prototype,"countryCode",void 0),e([o({json:{write:!0}})],n.prototype,"defaultZoomScale",void 0),e([o()],n.prototype,"localSearchDisabled",void 0),e([o()],n.prototype,"language",void 0),e([o()],n.prototype,"locationType",void 0),e([o({json:{write:!0}})],n.prototype,"name",void 0),e([o({json:{write:!0}})],n.prototype,"placeholder",void 0),e([o()],n.prototype,"searchTemplate",void 0),e([o({json:{write:!0}})],n.prototype,"singleLineFieldName",void 0),e([o({json:{read:{source:"suggest"},write:{target:"suggest"}}})],n.prototype,"suggestionsEnabled",void 0),e([o({json:{write:!0}})],n.prototype,"url",void 0),e([o({json:{write:!0}})],n.prototype,"zoomScale",void 0),n=a=e([i("esri.widgets.Search.LocatorSearchSource")],n);const p=n;export{p as default};