Interface: GeoJSONLayerProps
The prop type for the [[GeoJSONLayer
]] component.
Properties
data
• data: undefined
| GeoJSON
The GeoJSON data
Defined in
src/components/GeoJson/GeoJsonLayer.tsx:28
markerComponent
• Optional
markerComponent: MarkerComponent
A marker component to be used for points
Defined in
src/components/GeoJson/GeoJsonLayer.tsx:34
requestFeatureStyle
• Optional
requestFeatureStyle: RequestFeatureStyleHandler
A callback to request the SVG props for a feature
Defined in
src/components/GeoJson/GeoJsonLayer.tsx:30
Methods
renderPopup
▸ Optional
renderPopup(feature
, point
): null
| ReactElement
<any
, string
| JSXElementConstructor
<any
>>
A callback to provide a popup when the pointer is over the feature
Parameters
Name | Type |
---|---|
feature | Feature <Geometry , GeoJsonProperties > |
point | Point |
Returns
null
| ReactElement
<any
, string
| JSXElementConstructor
<any
>>