Skip to content

Commit

Permalink
chore(release): 24.0.0-main.9 [skip ci]
Browse files Browse the repository at this point in the history
# [24.0.0-main.9](v24.0.0-main.8...v24.0.0-main.9) (2024-06-10)

### Features

* update coordinate button to use the new result value ([a41b996](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));
    // ...
  }}
/>
```
  • Loading branch information
semantic-release-bot committed Jun 10, 2024
1 parent ea87122 commit 979ae0e
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
# [24.0.0-main.9](https://github.com/terrestris/react-geo/compare/v24.0.0-main.8...v24.0.0-main.9) (2024-06-10)


### Features

* update coordinate button to use the new result value ([a41b996](https://github.com/terrestris/react-geo/commit/a41b9968ebe0c308381217f9be6093267893ffbb))


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

# [24.0.0-main.8](https://github.com/terrestris/react-geo/compare/v24.0.0-main.7...v24.0.0-main.8) (2024-06-06)


Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@terrestris/react-geo",
"version": "24.0.0-main.8",
"version": "24.0.0-main.9",
"description": "A set of geo related modules. To use in combination with react, antd and ol.",
"keywords": [
"react",
Expand Down

0 comments on commit 979ae0e

Please sign in to comment.