import FloorFilter from "@arcgis/core/webdoc/widgets/FloorFilter.js";
Inheritance
FloorFilterAccessor
Since
ArcGIS Maps SDK for JavaScript 5.0

Floor filtering is controlled by a configurable floor filter. Those configurations are saved to the web map as a Floor Filter widget.

Constructors

Constructor

Constructor

Parameters

ParameterTypeDescriptionRequired
properties
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.

declaredClass

readonlyinherited Property
Type
string
Inherited from: Accessor
Since
ArcGIS Maps SDK for JavaScript 4.7

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

enabled

Property
Type
boolean

Indicates whether the FloorFilter is active and filtering the displayed content according to the FloorFilter selection.

Default value
false

facility

Property
Type
string | null | undefined

Contains the facility ID for the initially selected FloorFilter.facility in the floor filter.

floorVisibilityMode

Property
Type
FloorVisibilityMode
Since
ArcGIS Maps SDK for JavaScript 5.1

Indicates whether the floor filter should display the selected floor and all floors below it or only the selected floor.

Floor Visibility mode is only applicable in web scenes.

Default value
"selectedOnly"

level

Property
Type
string | null | undefined

Contains the level ID for the initially selected floor, which is used when filtering layers by their configured floor-aware properties.

longNames

Property
Type
boolean

Indicates whether the levels list is showing the long names from FloorFilter.

Default value
false

minimized

Property
Type
boolean

Indicates whether the floor filter has been minimized to show only the levels list.

Default value
false

pinnedLevels

Property
Type
boolean

Indicates whether the levels portion of the floor filter has been pinned to show the levels list.

Default value
false

site

Property
Type
string | null | undefined

Contains the site ID for the initially selected FloorFilter.site in the floor filter.

useVerticalOrder

Property
Type
boolean

Indicates whether the floor filter should use vertical order for floor filtering across multiple facilities.

Default value
false

Methods

MethodSignatureClass
inherited static
fromJSON(json: any): any
inherited
toJSON(): any

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.

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.

Type definitions

FloorVisibilityMode

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.1
Type
"belowSelected" | "selectedOnly"