Skip to main content

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​

NameType
featureFeature<Geometry, GeoJsonProperties>
pointPoint

Returns​

null | ReactElement<any, string | JSXElementConstructor<any>>

Defined in​

src/components/GeoJson/GeoJsonLayer.tsx:32