Constructor
new PortfoliosState(config)
Create a lizmap Portfolios State instance
Parameters:
| Name | Type | Description |
|---|---|---|
config |
PortfoliosConfig | main config |
- Source:
Extends
Members
geometryStatus :string
The geometry status
Type:
- string
- Source:
runStatus :string
The run status
Type:
- string
- Source:
selected :null|PortfolioConfig
The selected portfolio
Type:
- null | PortfolioConfig
- Source:
uiStatus :string
The ui status
Type:
- string
- Source:
Methods
display()
Display portfolios selector
- Source:
Fires:
geometryCleared()
The geometry is cleared
- Source:
geometryDrawn()
The geometry is drawn
- Source:
hide()
Hide portfolios selector
- Source:
Fires:
launch()
Run portfolio
- Source:
select(index)
Select a portfolio
Parameters:
| Name | Type | Description |
|---|---|---|
index |
number | The portfolio index, negative to unselect |
- Source:
Fires:
Throws:
-
if the index is out of range
- Type
- RangeError