Skip to contentEsri Developer
  • Documentation

    Maps and scenes

    Build 2D and 3D mapping applications with client APIs, the basemap styles service, and data services.

    Learn more in the Mapping and location services guide

    Topics

    • Mapping
    • Types of mapping apps
    • How to build a mapping app
    • Maps (2D)
    • Scenes (3D)
    • Basemaps
    • Custom basemap styles
    • Data layers
    • Web maps
    • Web scenes

    Tutorials

    • JavaScript Maps SDK
    • .NET Maps SDK
    • Kotlin Maps SDK
    • Swift Maps SDK
    • Flutter Maps SDK
    • Java Maps SDK
    • Qt Maps SDK
    • Unity Maps SDK
    • Unreal Engine Maps SDK
    • Leaflet
    • MapLibre GL JS
    • OpenLayers
    • CesiumJS
    • Python API
    • Map Viewer
    • Scene Viewer
    • Vector tile style editor
  • SDKs and APIs
  • Explore developer products
  • Explore help resources

ArcGIS Maps SDK for JavaScriptReferences

  • Home
  • Sample Code
  • References
  • Showcase
  • Blogs
  • core
    • AttributeBinsGraphic
    • Basemap
    • Camera
    • CameraLayout
    • Color
    • Graphic
    • Ground
    • Map
    • PopupTemplate
    • Viewpoint
    • WebDocument2D
    • WebLinkChart
    • WebMap
    • WebScene
    • arcade
    • config
    • intl
    • kernel
    • request
    • unionTypes
      • GeotriggersInfo
      • IPSInfo
      • Widgets
        • Search
        • SearchLayer
        • SearchLayerField
        • SearchTable
        • SearchTableField
        • Viewing
  • map-components
  • charts-components
  • ai-components
  • embeddable-components
  • common-components
  • coding-components

Search

import Search from "@arcgis/core/webdoc/applicationProperties/Search.js";
const Search = await $arcgis.import("@arcgis/core/webdoc/applicationProperties/Search.js");
Inheritance
Search→Accessor
Since
ArcGIS Maps SDK for JavaScript 4.7

Represents the search parameters set within the web scene or the web map.

Constructors

Constructor

Constructor

Parameters

ParameterTypeDescriptionRequired
properties
SearchProperties
See the properties table for a list of all the properties that may be passed into the constructor.

Properties

Any properties can be set, retrieved or listened to. See the Watch for changes topic.
PropertyTypeClass
addressSearchEnabled
boolean
declaredClass
readonly inherited
string
Accessor
enabled
boolean
hintText
string | null | undefined
layers
Collection<SearchLayer>
tables
Collection<SearchTable>

addressSearchEnabled

Property
Type
boolean
Since
ArcGIS Maps SDK for JavaScript 4.14

Indicates whether the place finder is enabled in the web scene or the web map.

Default value
true

declaredClass

readonlyinherited Property
Type
string
Inherited from: Accessor

The name of the class. The declared class name is formatted as esri.folder.className.

enabled

Property
Type
boolean

Whether search functionality is enabled in the web scene or the web map.

Default value
true

hintText

Property
Type
string | null | undefined

The hint provided with the search dialog.

layers

autocast Property
Type
Collection<SearchLayer>

A collection of layers to be included in search.

tables

autocast Property
Type
Collection<SearchTable>

A collection of tables to be included in search.

Methods

MethodSignatureClass
fromJSON
inherited static
fromJSON(json: any): any
JSONSupportMixin
clone
clone(): Search
toJSON
inherited
toJSON(): any
JSONSupportMixin

fromJSON

inheritedstatic Method
Signature
fromJSON (json: any): any
Inherited from: JSONSupportMixin

Creates a new instance of this class and initializes it with values from a JSON object generated from an ArcGIS product. The object passed into the input json parameter often comes from a response to a query operation in the REST API or a toJSON() method from another ArcGIS product. See the Using fromJSON() topic in the Guide for details and examples of when and how to use this function.

Parameters

ParameterTypeDescriptionRequired
json
any

A JSON representation of the instance in the ArcGIS format. See the ArcGIS REST API documentation for examples of the structure of various input JSON objects.

Returns
any

Returns a new instance of this class.

clone

Method
Signature
clone (): Search

Creates a deep clone of this object.

Returns
Search

Creates a deep clone of the instance calling this method.

toJSON

inherited Method
Signature
toJSON (): any
Inherited from: JSONSupportMixin

Converts an instance of this class to its ArcGIS portal JSON representation. See the Using fromJSON() guide topic for more information.

Returns
any

The ArcGIS portal JSON representation of an instance of this class.

  • Constructors
  • Properties
  • Methods
Was this page helpful?

Copyright © 2026 Esri . All rights reserved.

  • Privacy
  • Terms of Use

Sign up to receive the latest news from Esri