-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update coordinate button to use the new result value
BREAKING CHANGE: 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
1 parent
d0c5b3f
commit a41b996
Showing
3 changed files
with
12 additions
and
10 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters