Releases: terrestris/react-geo
Releases · terrestris/react-geo
v24.0.0-main.9
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));
// ...
}}
/>
v24.0.0-main.8
24.0.0-main.8 (2024-06-06)
Bug Fixes
- use antd css variables to make button active (fe5504a)
BREAKING CHANGES
- This removes the buttonTransparent property.
See the example on how to customize the color via the ConfigProvider.
v24.0.0-main.7
v24.0.0-main.6
24.0.0-main.6 (2024-06-04)
Bug Fixes
- layerswitcher always shows next layer instead of current layer (1350c97)
v24.0.0-main.5
24.0.0-main.5 (2024-06-03)
Features
- unify functionality of WfsField and NominatimField into SearchField (f83539b)
BREAKING CHANGES
- The
WfsField
andNominatimField
hooks are removed.
Please check the example forSearchField
.
v24.0.0-main.4
v24.0.0-main.3
v24.0.0-main.2
v24.0.0-next.6
24.0.0-next.6 (2024-05-23)
Features
- allow CoordinateInfo to request Feature Info in json format (18e2a6f)
v24.0.0-main.1
24.0.0-main.1 (2024-05-23)
Bug Fixes
- adds null check (5a78b77)
- adjust to breaking changes in latest version of react-util (2711a63)
- adjust to change Key type in @types/react (261ea52)
- made use of olInteraction hook (7b0732e)
- make use of dayjs, don't pass icon prop in LayerTreeNode (c0cffa8)
- make use of UseMeasureProps (e73bfa7)
- readd changes that were lost in rebase (f1c758f)
- remove the DigitizeButton (7cf8263)
- sets the transparent background to false again (aad694f)
- simplify regex (106e2c0)
chore
- migrate to typescript v5 (bd8812f)
- refactor geolocation button (f646ed5)
- update dependencies (2515987)
- update to ol 8 api (fc1ff8c)
Code Refactoring
- class to function component (3b13ce1)
- components FeatureGrid and AgFeatureGrid to function component (ea48bb3)
- remove deprecated HOC components (ce5bdb7)
- remove Panel, Window and Titlebar components (c749faa)
- simplify the ToggleButton and ToggleGroup components (14760f0)
Features
- add visible option for WfsSearchField (a26f844)
- adds a flag for transparent background of ToggleButton (ef77c9d)
- adds a wfs layer and feature-info (#3826) (38dabed)
- adds the onSuccess callback to CoordinateInfo component (1c0bec3)
- allow CoordinateInfo to request Feature Info in json format (18e2a6f)
- combine WfsSearch and WfsSearchInput to WfsSearchField (a88b54b)
- introduce useNominatim hook (f4c8597)
- pass through AutoComplete props (698d913)
- pass through on fetch success callbacks (0b624bd)
- readd MapComponent, FloatingMapLogo and BackgroundLayerChooser (a32aee4)
- refactor code into
useDraw
hook (cd657fe) - remove toolbar and user chip component (3fe4ce2)
- render urls as anchor element (9b63cd2)
- upgraded ol to v9 (f2bd3d0)
- use
WmsLayer
fromol-util
instead ofreact-util
(0abde72) - use coordinateInfo hook (7dddfce)
- use useProjFromEpsgIO hook (741851d)
- use wfs hook (189b0bb)
BREAKING CHANGES
- removes props map and toggleOnClick
- share common grid props among all grids
- make use of new useWfs hook in react-util
- refactors CoordinateReferenceSystemCombo to use useProjFromEpsgIO for CCRS fetching
- refactors CoordinateInfo as funnction compononent
- update ol-util peer dependency
- The pressed state of the ToggleButton is controlled now
- Typescript configuration
- use geolocation hook of react-util
- the AddWmsLayerEntry accepts a map prop now (required for attributions)
- These componentes are not available anymore
- Panel, Window and Titlebar components are not existing anymore
- mappify, loadify, isVisibleComponent HOCs as well as MapProvider class were removed
- Removes the deprecated DigitizeButton in favour of the DrawButton