A set of geo related modules to use in combination with React, Ant Design and OpenLayers.
Upgrade Notes: https://github.com/terrestris/react-geo/wiki/Version-24.0.0-Upgrade-Notes
useDraw
hook (cd657fe)WmsLayer
from ol-util
instead of react-util
(0abde72)If you need the grouping, you can do the following
import { groupBy, mapValues } from 'lodash';
<CoordinateInfo
resultRenderer={({ features }) => {
const grouped = groupBy(features, 'featureType');
const groupedAndMapped = mapValues(grouped, results => results.map(r => r.feature));
// ...
}}
/>
WfsField
and NominatimField
hooks are removed.
Please check the example for SearchField
.If you need the grouping, you can do the following
import { groupBy, mapValues } from 'lodash';
<CoordinateInfo
resultRenderer={({ features }) => {
const grouped = groupBy(features, 'featureType');
const groupedAndMapped = mapValues(grouped, results => results.map(r => r.feature));
// ...
}}
/>
WfsField
and NominatimField
hooks are removed.
Please check the example for SearchField
.