@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
30 lines (28 loc) • 954 B
TypeScript
import type SearchLayerField from "./SearchLayerField.js";
import type { JSONSupport } from "../../core/JSONSupport.js";
import type { SearchLayerFieldProperties } from "./SearchLayerField.js";
export interface SearchLayerProperties extends Partial<Pick<SearchLayer, "id" | "subLayer">> {
/** The field to use for search. */
field?: SearchLayerFieldProperties;
}
/**
* Represents a layer to be included in search.
*
* @since 4.7
*/
export default class SearchLayer extends JSONSupport {
constructor(properties?: SearchLayerProperties);
/** The field to use for search. */
get field(): SearchLayerField;
set field(value: SearchLayerFieldProperties);
/** The id of the layer. */
accessor id: string;
/** The sub layer index. */
accessor subLayer: number | null | undefined;
/**
* Creates a deep clone of this object.
*
* @returns Creates a deep clone of the instance calling this method.
*/
clone(): SearchLayer;
}