-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: adds a wfs layer and feature-info #3826
Merged
Merged
Conversation
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
hwbllmnn
approved these changes
May 6, 2024
ahennr
approved these changes
May 6, 2024
dnlkoch
approved these changes
May 6, 2024
FritzHoing
force-pushed
the
add-wfs-example
branch
from
May 6, 2024 14:14
cc50ece
to
4eba6dd
Compare
simonseyock
pushed a commit
that referenced
this pull request
May 6, 2024
* feat: adds a wfs layer and feature-info
github-actions bot
pushed a commit
that referenced
this pull request
May 6, 2024
# [24.0.0-next.1](v23.4.1...v24.0.0-next.1) (2024-05-06) ### Bug Fixes * adds null check ([5a78b77](5a78b77)) * adjust to breaking changes in latest version of react-util ([2711a63](2711a63)) * adjust to change Key type in @types/react ([261ea52](261ea52)) * made use of olInteraction hook ([7b0732e](7b0732e)) * make use of dayjs, don't pass icon prop in LayerTreeNode ([c0cffa8](c0cffa8)) * make use of UseMeasureProps ([e73bfa7](e73bfa7)) * readd changes that were lost in rebase ([f1c758f](f1c758f)) * remove the DigitizeButton ([7cf8263](7cf8263)) * sets the transparent background to false again ([aad694f](aad694f)) * simplify regex ([106e2c0](106e2c0)) ### chore * migrate to typescript v5 ([bd8812f](bd8812f)) * refactor geolocation button ([f646ed5](f646ed5)) * update dependencies ([2515987](2515987)) * update to ol 8 api ([fc1ff8c](fc1ff8c)) ### Code Refactoring * class to function component ([3b13ce1](3b13ce1)) * components FeatureGrid and AgFeatureGrid to function component ([ea48bb3](ea48bb3)) * remove deprecated HOC components ([ce5bdb7](ce5bdb7)) * remove Panel, Window and Titlebar components ([c749faa](c749faa)) * simplify the ToggleButton and ToggleGroup components ([14760f0](14760f0)) ### Features * adds a flag for transparent background of ToggleButton ([ef77c9d](ef77c9d)) * adds a wfs layer and feature-info ([#3826](#3826)) ([38dabed](38dabed)) * adds the onSuccess callback to CoordinateInfo component ([1c0bec3](1c0bec3)) * combine WfsSearch and WfsSearchInput to WfsSearchField ([a88b54b](a88b54b)) * introduce useNominatim hook ([f4c8597](f4c8597)) * readd MapComponent, FloatingMapLogo and BackgroundLayerChooser ([a32aee4](a32aee4)) * refactor code into `useDraw` hook ([cd657fe](cd657fe)) * remove toolbar and user chip component ([3fe4ce2](3fe4ce2)) * upgraded ol to v9 ([f2bd3d0](f2bd3d0)) * use coordinateInfo hook ([7dddfce](7dddfce)) * use useProjFromEpsgIO hook ([741851d](741851d)) * use wfs hook ([189b0bb](189b0bb)) ### BREAKING CHANGES * removes props map and toggleOnClick * share common grid props among all grids * make use of new useWfs hook in react-util Co-authored-by: Amanda Sefu-Beierl <[email protected]> * 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
github-actions bot
pushed a commit
that referenced
this pull request
May 23, 2024
# [24.0.0-main.1](v23.5.0...v24.0.0-main.1) (2024-05-23) ### Bug Fixes * adds null check ([5a78b77](5a78b77)) * adjust to breaking changes in latest version of react-util ([2711a63](2711a63)) * adjust to change Key type in @types/react ([261ea52](261ea52)) * made use of olInteraction hook ([7b0732e](7b0732e)) * make use of dayjs, don't pass icon prop in LayerTreeNode ([c0cffa8](c0cffa8)) * make use of UseMeasureProps ([e73bfa7](e73bfa7)) * readd changes that were lost in rebase ([f1c758f](f1c758f)) * remove the DigitizeButton ([7cf8263](7cf8263)) * sets the transparent background to false again ([aad694f](aad694f)) * simplify regex ([106e2c0](106e2c0)) ### chore * migrate to typescript v5 ([bd8812f](bd8812f)) * refactor geolocation button ([f646ed5](f646ed5)) * update dependencies ([2515987](2515987)) * update to ol 8 api ([fc1ff8c](fc1ff8c)) ### Code Refactoring * class to function component ([3b13ce1](3b13ce1)) * components FeatureGrid and AgFeatureGrid to function component ([ea48bb3](ea48bb3)) * remove deprecated HOC components ([ce5bdb7](ce5bdb7)) * remove Panel, Window and Titlebar components ([c749faa](c749faa)) * simplify the ToggleButton and ToggleGroup components ([14760f0](14760f0)) ### Features * add visible option for WfsSearchField ([a26f844](a26f844)) * adds a flag for transparent background of ToggleButton ([ef77c9d](ef77c9d)) * adds a wfs layer and feature-info ([#3826](#3826)) ([38dabed](38dabed)) * adds the onSuccess callback to CoordinateInfo component ([1c0bec3](1c0bec3)) * allow CoordinateInfo to request Feature Info in json format ([18e2a6f](18e2a6f)) * combine WfsSearch and WfsSearchInput to WfsSearchField ([a88b54b](a88b54b)) * introduce useNominatim hook ([f4c8597](f4c8597)) * pass through AutoComplete props ([698d913](698d913)) * pass through on fetch success callbacks ([0b624bd](0b624bd)) * readd MapComponent, FloatingMapLogo and BackgroundLayerChooser ([a32aee4](a32aee4)) * refactor code into `useDraw` hook ([cd657fe](cd657fe)) * remove toolbar and user chip component ([3fe4ce2](3fe4ce2)) * render urls as anchor element ([9b63cd2](9b63cd2)) * upgraded ol to v9 ([f2bd3d0](f2bd3d0)) * use `WmsLayer` from `ol-util` instead of `react-util` ([0abde72](0abde72)) * use coordinateInfo hook ([7dddfce](7dddfce)) * use useProjFromEpsgIO hook ([741851d](741851d)) * use wfs hook ([189b0bb](189b0bb)) ### BREAKING CHANGES * removes props map and toggleOnClick * share common grid props among all grids * make use of new useWfs hook in react-util Co-authored-by: Amanda Sefu-Beierl <[email protected]> * 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
github-actions bot
pushed a commit
that referenced
this pull request
Jun 12, 2024
# [24.0.0](v23.5.0...v24.0.0) (2024-06-12) ### Bug Fixes * add build info to readme ([#3866](#3866)) ([7b97b95](7b97b95)) * adds null check ([5a78b77](5a78b77)) * adjust some css nesting, allows for use of the table scroll property without breaking the css ([c7cc92c](c7cc92c)) * adjust to breaking changes in latest version of react-util ([2711a63](2711a63)) * adjust to change Key type in @types/react ([261ea52](261ea52)) * explicit imports ([40af413](40af413)) * layerswitcher always shows next layer instead of current layer ([1350c97](1350c97)) * **LayerTree:** make contents of title clickable ([334e8aa](334e8aa)) * made use of olInteraction hook ([7b0732e](7b0732e)) * make property grid tighter ([1130d6e](1130d6e)) * make use of dayjs, don't pass icon prop in LayerTreeNode ([c0cffa8](c0cffa8)) * make use of UseMeasureProps ([e73bfa7](e73bfa7)) * readd changes that were lost in rebase ([f1c758f](f1c758f)) * remove the DigitizeButton ([7cf8263](7cf8263)) * sets the transparent background to false again ([aad694f](aad694f)) * simplify regex ([106e2c0](106e2c0)) * update dependencies ([30d9b90](30d9b90)) * update react-util ([536b634](536b634)) * use antd css variables to make button active ([fe5504a](fe5504a)) ### chore * migrate to typescript v5 ([bd8812f](bd8812f)) * refactor geolocation button ([f646ed5](f646ed5)) * update dependencies ([2515987](2515987)) * update to ol 8 api ([fc1ff8c](fc1ff8c)) ### Code Refactoring * class to function component ([3b13ce1](3b13ce1)) * components FeatureGrid and AgFeatureGrid to function component ([ea48bb3](ea48bb3)) * remove deprecated HOC components ([ce5bdb7](ce5bdb7)) * remove Panel, Window and Titlebar components ([c749faa](c749faa)) * simplify the ToggleButton and ToggleGroup components ([14760f0](14760f0)) ### Features * add visible option for WfsSearchField ([a26f844](a26f844)) * adds a flag for transparent background of ToggleButton ([ef77c9d](ef77c9d)) * adds a wfs layer and feature-info ([#3826](#3826)) ([38dabed](38dabed)) * adds the onSuccess callback to CoordinateInfo component ([1c0bec3](1c0bec3)) * allow CoordinateInfo to request Feature Info in json format ([18e2a6f](18e2a6f)) * combine WfsSearch and WfsSearchInput to WfsSearchField ([a88b54b](a88b54b)) * introduce useNominatim hook ([f4c8597](f4c8597)) * pass through AutoComplete props ([698d913](698d913)) * pass through on fetch success callbacks ([0b624bd](0b624bd)) * readd MapComponent, FloatingMapLogo and BackgroundLayerChooser ([a32aee4](a32aee4)) * refactor code into `useDraw` hook ([cd657fe](cd657fe)) * remove toolbar and user chip component ([3fe4ce2](3fe4ce2)) * render urls as anchor element ([9b63cd2](9b63cd2)) * unify functionality of WfsField and NominatimField into SearchField ([f83539b](f83539b)) * update coordinate button to use the new result value ([a41b996](a41b996)) * upgraded ol to v9 ([f2bd3d0](f2bd3d0)) * use `WmsLayer` from `ol-util` instead of `react-util` ([0abde72](0abde72)) * use coordinateInfo hook ([7dddfce](7dddfce)) * use useProjFromEpsgIO hook ([741851d](741851d)) * use wfs hook ([189b0bb](189b0bb)) ### BREAKING CHANGES * This removes the buttonTransparent property. See the example on how to customize the color via the ConfigProvider. * 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)); // ... }} /> ``` * The `WfsField` and `NominatimField` hooks are removed. Please check the example for `SearchField`. * removes props map and toggleOnClick * share common grid props among all grids * make use of new useWfs hook in react-util Co-authored-by: Amanda Sefu-Beierl <[email protected]> * 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
A new wfs layer and feature-info query is introduced into the example.
Related issues or pull requests
the following MR needs to be considered:
terrestris/react-util#692
Pull request type
Do you introduce a breaking change?