Shape component.
A Shape is a custom geometry on the map created from a GeoJSON feature collection.
<Shape geometry={geojson} style={{ color: 'blue', height: 2 }} /> Copy
<Shape geometry={geojson} style={{ color: 'blue', height: 2 }} />
Readonly
Optional
Used in debugging messages. You might want to set it explicitly if you want to display a different name for debugging purposes.
Legacy React Docs
Ignored by React.
Only kept in types for backwards compatibility. Will be removed in a future major release.
Shape component.
A Shape is a custom geometry on the map created from a GeoJSON feature collection.
Example