GeoLeaf Core API - v3.0.0
Preparing search index...
kernel/geojson/geojson-types
GeoJSONLayerOptions
Interface GeoJSONLayerOptions
Options for a GeoJSON layer (config layer entry)
interface
GeoJSONLayerOptions
{
id
?:
string
;
label
?:
string
;
url
?:
string
;
data
?:
unknown
;
defaultStyle
?:
GeoJSONStyle
;
defaultPointStyle
?:
Record
<
string
,
unknown
>
;
styleRules
?:
GeoJSONStyleRule
[]
;
pointToLayer
?:
(
feature
:
GeoJSONFeature
,
latlng
:
unknown
)
=>
unknown
;
onEachFeature
?:
(
feature
:
GeoJSONFeature
,
layer
:
unknown
)
=>
void
;
interactiveShape
?:
boolean
;
fitBoundsOnLoad
?:
boolean
;
maxZoomOnFit
?:
number
;
[
key
:
string
]:
unknown
;
}
Indexable
[
key
:
string
]:
unknown
Index
Properties
id?
label?
url?
data?
default
Style?
default
Point
Style?
style
Rules?
point
To
Layer?
on
Each
Feature?
interactive
Shape?
fit
Bounds
On
Load?
max
Zoom
On
Fit?
Properties
Optional
id
id
?:
string
Optional
label
label
?:
string
Optional
url
url
?:
string
Optional
data
data
?:
unknown
Optional
default
Style
defaultStyle
?:
GeoJSONStyle
Optional
default
Point
Style
defaultPointStyle
?:
Record
<
string
,
unknown
>
Optional
style
Rules
styleRules
?:
GeoJSONStyleRule
[]
Optional
point
To
Layer
pointToLayer
?:
(
feature
:
GeoJSONFeature
,
latlng
:
unknown
)
=>
unknown
Optional
on
Each
Feature
onEachFeature
?:
(
feature
:
GeoJSONFeature
,
layer
:
unknown
)
=>
void
Optional
interactive
Shape
interactiveShape
?:
boolean
Optional
fit
Bounds
On
Load
fitBoundsOnLoad
?:
boolean
Optional
max
Zoom
On
Fit
maxZoomOnFit
?:
number
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Properties
id
label
url
data
default
Style
default
Point
Style
style
Rules
point
To
Layer
on
Each
Feature
interactive
Shape
fit
Bounds
On
Load
max
Zoom
On
Fit
GeoLeaf Core API - v3.0.0
Loading...
Options for a GeoJSON layer (config layer entry)