@geoblocks/ol-comfy
Preparing search index...
layer/utils
updateLayerStyle
Function updateLayerStyle
updateLayerStyle
(
layer
:
VectorLayer
<
VectorSource
<
Feature
<
Geometry
,
{
[
x
:
string
]:
any
}
>
>
,
>
,
styleFn
:
(
feature
:
Feature
<
Geometry
,
{
[
x
:
string
]:
any
}
>
|
RenderFeature
,
)
=>
Style
|
Style
[]
,
)
:
void
Set the style of a layer (only) once.
Parameters
layer
:
VectorLayer
<
VectorSource
<
Feature
<
Geometry
,
{
[
x
:
string
]:
any
}
>
>
>
styleFn
:
(
feature
:
Feature
<
Geometry
,
{
[
x
:
string
]:
any
}
>
|
RenderFeature
,
)
=>
Style
|
Style
[]
Returns
void
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
@geoblocks/ol-comfy
Loading...
Set the style of a layer (only) once.