Documentation
Code
GitLab
@geogirafe/lib-geoportal
tools/layermanager
LayerManager
Class LayerManager
Hierarchy (
View Summary
)
GirafeSingleton
LayerManager
Index
Constructors
constructor
Properties
config
Manager
state
Manager
Accessors
state
Methods
activate
If
Default
Checked
get
Tree
Item
initialize
Legends
is
Layer
With
Filter
is
Layer
With
Legend
is
Null
Or
Undefined
is
Null
Or
Undefined
Or
Blank
on
Layer
Toggled
set
Error
toggle
toggle
Group
Or
Theme
toggle
Layer
unset
Error
get
Instance
Constructors
constructor
new
LayerManager
(
type
:
string
)
:
LayerManager
Parameters
type
:
string
Returns
LayerManager
Properties
config
Manager
configManager
:
ConfigManager
state
Manager
stateManager
:
StateManager
Accessors
state
get
state
()
:
State
Returns
State
Methods
activate
If
Default
Checked
activateIfDefaultChecked
(
layer
:
BaseLayer
)
:
void
Parameters
layer
:
BaseLayer
Returns
void
get
Tree
Item
getTreeItem
(
treeItemId
:
string
)
:
BaseLayer
Parameters
treeItemId
:
string
Returns
BaseLayer
initialize
Legends
initializeLegends
(
layer
:
LayerWms
)
:
void
Parameters
layer
:
LayerWms
Returns
void
is
Layer
With
Filter
isLayerWithFilter
(
layer
:
Layer
|
ILayerWithFilter
)
:
layer
is
ILayerWithFilter
Parameters
layer
:
Layer
|
ILayerWithFilter
Returns
layer
is
ILayerWithFilter
is
Layer
With
Legend
isLayerWithLegend
(
layer
:
Layer
|
ILayerWithLegend
)
:
layer
is
ILayerWithLegend
Parameters
layer
:
Layer
|
ILayerWithLegend
Returns
layer
is
ILayerWithLegend
is
Null
Or
Undefined
isNullOrUndefined
(
val
:
unknown
)
:
val
is
undefined
|
null
Parameters
val
:
unknown
Returns
val
is
undefined
|
null
is
Null
Or
Undefined
Or
Blank
isNullOrUndefinedOrBlank
(
val
:
unknown
)
:
val
is
undefined
|
null
|
""
Parameters
val
:
unknown
Returns
val
is
undefined
|
null
|
""
on
Layer
Toggled
onLayerToggled
(
layer
:
BaseLayer
)
:
void
Parameters
layer
:
BaseLayer
Returns
void
set
Error
setError
(
layer
:
BaseLayer
,
error
:
string
)
:
void
Parameters
layer
:
BaseLayer
error
:
string
Returns
void
toggle
toggle
(
layer
:
BaseLayer
,
state
:
"on"
|
"off"
)
:
void
Parameters
layer
:
BaseLayer
state
:
"on"
|
"off"
Returns
void
toggle
Group
Or
Theme
toggleGroupOrTheme
(
groupOrTheme
:
GroupLayer
|
ThemeLayer
,
state
?:
"on"
|
"off"
|
"semi"
,
)
:
void
Parameters
groupOrTheme
:
GroupLayer
|
ThemeLayer
Optional
state
:
"on"
|
"off"
|
"semi"
Returns
void
toggle
Layer
toggleLayer
(
layer
:
Layer
,
state
?:
"on"
|
"off"
)
:
void
Parameters
layer
:
Layer
Optional
state
:
"on"
|
"off"
Returns
void
unset
Error
unsetError
(
layer
:
BaseLayer
)
:
void
Parameters
layer
:
BaseLayer
Returns
void
Static
get
Instance
getInstance
<
T
>
(
this
:
Constructor
<
T
>
)
:
T
Type Parameters
T
Parameters
this
:
Constructor
<
T
>
Returns
T
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
config
Manager
state
Manager
Accessors
state
Methods
activate
If
Default
Checked
get
Tree
Item
initialize
Legends
is
Layer
With
Filter
is
Layer
With
Legend
is
Null
Or
Undefined
is
Null
Or
Undefined
Or
Blank
on
Layer
Toggled
set
Error
toggle
toggle
Group
Or
Theme
toggle
Layer
unset
Error
get
Instance
@geogirafe/lib-geoportal
Loading...