Documentation
Code
GitLab
@geogirafe/lib-geoportal
components/map/tools/localfilemanager
LocalFileManager
Class LocalFileManager
Index
Constructors
constructor
Properties
active
Layers
layer
Group
map
state
Manager
Methods
add
Layer
create
Interaction
get
Layer
layer
Exists
remove
Layer
select
Features
validate
And
Complete
Features
Constructors
constructor
new
LocalFileManager
(
map
:
Map
)
:
LocalFileManager
Parameters
map
:
Map
Returns
LocalFileManager
Properties
active
Layers
activeLayers
:
Record
<
string
,
{
layerFile
:
LayerLocalFile
;
olayer
:
VectorLayer
<
VectorSource
<
Feature
<
Geometry
>
>
,
Feature
<
Geometry
>
>
;
}
,
>
= {}
layer
Group
layerGroup
:
GroupLayer
= ...
map
map
:
Map
state
Manager
stateManager
:
StateManager
Methods
add
Layer
addLayer
(
layerFile
:
LayerLocalFile
)
:
void
Parameters
layerFile
:
LayerLocalFile
Returns
void
create
Interaction
createInteraction
()
:
DragAndDrop
Returns
DragAndDrop
get
Layer
getLayer
(
layerFile
:
LayerLocalFile
,
)
:
null
|
VectorLayer
<
VectorSource
<
Feature
<
Geometry
>
>
,
Feature
<
Geometry
>
>
Parameters
layerFile
:
LayerLocalFile
Returns
null
|
VectorLayer
<
VectorSource
<
Feature
<
Geometry
>
>
,
Feature
<
Geometry
>
>
layer
Exists
layerExists
(
layer
:
LayerLocalFile
)
:
boolean
Parameters
layer
:
LayerLocalFile
Returns
boolean
remove
Layer
removeLayer
(
layerFile
:
LayerLocalFile
)
:
void
Parameters
layerFile
:
LayerLocalFile
Returns
void
select
Features
selectFeatures
(
extent
:
number
[]
)
:
void
Parameters
extent
:
number
[]
Returns
void
validate
And
Complete
Features
validateAndCompleteFeatures
(
featureType
:
string
,
features
:
Feature
<
Geometry
>
[]
,
)
:
{
features
:
Feature
<
Geometry
>
[]
;
globalExtent
:
null
|
number
[]
}
Parameters
featureType
:
string
features
:
Feature
<
Geometry
>
[]
Returns
{
features
:
Feature
<
Geometry
>
[]
;
globalExtent
:
null
|
number
[]
}
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
active
Layers
layer
Group
map
state
Manager
Methods
add
Layer
create
Interaction
get
Layer
layer
Exists
remove
Layer
select
Features
validate
And
Complete
Features
@geogirafe/lib-geoportal
Loading...