Skip to content

v24.0.0-main.9

Pre-release
Pre-release
Compare
Choose a tag to compare
@dnlkoch dnlkoch released this 10 Jun 12:39
· 250 commits to main since this release

24.0.0-main.9 (2024-06-10)

Features

  • update coordinate button to use the new result value (a41b996)

BREAKING CHANGES

  • The input of the render function is no longer grouped by featureType
    but returns an object for each feature that contains the feature, the layer and the feature type.

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));
    // ...
  }}
/>