Members
heightMax :number
Maximum height of floor
heightMin :number
Minimum height of floor
index :number
index starting at 0
name :string
Floor name
Methods
isContentEnabled() → {boolean}
Queries to see if the floor content (user added POIs) is enabled.
The floor also has to be enabled in order for them to be visible.
- Since:
- 1.7.17
- See:
Returns:
true if the floor content is enabled.
- Type
- boolean
isEnabled() → {boolean}
Queries to see if the floor content (like POIs, labels, icons, and its Surfaces) is enabled.
To actually see the shapes the LOD of the floor has to be enabled.
To actually see any user-added POIs or Paths, the content should be enabled
- Since:
- 1.7.17
- See:
Returns:
true if the floor is enabled.
- Type
- boolean
setContentEnabled(enabled)
Enables the user-added floor content: user-added POIs. The floor itself must be enabled for the content to be visible.
Currently it does not handle POIs which use a .selector (div element)
Parameters:
| Name | Type | Description |
|---|---|---|
enabled |
boolean |
- Since:
- 1.7.17
- See:
setEnabled(enabled)
Enables the floor content (like POIs, labels, and icons)
If disabled the floor content (surfaces) as well as POIs will not be displayed.
When enabling floors by hand, the mapviewer.getCurrentFloor() and mapviewer.changeFloor() will probably no longer be valid.
The floor can be enabled, and its POIs disabled by using setContentEnabled().
Parameters:
| Name | Type | Description |
|---|---|---|
enabled |
boolean |
- Since:
- 1.7.17
- See:
-
- vg.mapviewer.web2d.Mapviewer#getCurrentFloor
- vg.mapviewer.web2d.Mapviewer#changeFloor
- vg.mapviewer.web2d.Mapviewer.Floor#setContentEnabled