10.0.1 (2024-10-24)
- rename to cjs file since project is defined as module (1af2036)
10.0.0 (2024-10-21)
- upgrade eslint to v9 (823fe25)
- upgrade eslint to v9
9.0.0 (2024-09-20)
- update to latest ol (3ed364a)
- required peer dependency for ol is >= 10 now
8.0.5 (2024-06-19)
- useCoordinateInfo: clone before setting state (766dfe6)
- useCoordinateInfo: propagate state (85fb3d8)
- useCoordinateInfo: remove return and use continue (0cd2bc7)
8.0.4 (2024-06-17)
- useCoordinateInfo: do not use loading state in hook where it is used (685bcd5)
8.0.3 (2024-06-12)
- cleanup tooltips also when the containing component gets removed (0aa866b)
- missing semicolon (6e5da12)
8.0.2 (2024-06-10)
- remove functions from dependency lists that normally change on every render (30d8e5b)
8.0.1 (2024-06-10)
- add eslint react linting and fix warnings about dependency lists (89e70e2)
- add react hooks eslint plugin & fix dependencies (1d521c3)
- remove defaultFunc from dependencies of usePropOrDefault (f10b2b2)
8.0.0 (2024-06-06)
- The features result of the useCoordinateInfo hook 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';
const { features } = useCoordinateInfo();
const grouped = groupBy(features, 'featureType');
const groupedAndMapped = mapValues(grouped, results => results.map(r => r.feature));
- include layer in coordinate info result (11a4c70)
7.0.0 (2024-06-03)
- The
useWfs
anduseNominatim
hooks are removed. You can instead now use theuseSearch
hook with the needed search functions for example like this:
const [searchTerm, setSearchTerm] = useState<string>('');
const searchFunction = useCallback(createNominatimSearchFunction({}), []);
const {
featureCollection,
loading
} = useSearch(searchFunction, searchTerm);
- unify functionality of useWfs and useNominatim into on useSearch hook (9d37d20)
6.0.2 (2024-05-27)
- remove conditional hook calls (8c3c222)
6.0.1 (2024-05-27)
- update dependencies (300feaa)
6.0.0 (2024-05-24)
- switch to es2022 build
- switch to es2022 build (0d892e1)
5.2.0 (2024-05-22)
- allow CoordinateInfo to request Feature Info in json format (8ddc8b9)
5.1.0 (2024-05-15)
- add onFetchSuccess callbacks to useWfs and useNominatim (8f9bae4)
5.0.0 (2024-05-14)
- removes the wms layer type utils. These live now in
ol-util
- remove type utils and use the ones from
ol-util
(bf62700)
5.0.0-beta.1 (2024-05-06)
5.0.0-beta.0 (2024-05-06)
- the removed components have been moved to react-geo
- init useMeasure (2beae76)
- include the style (6e1aaae)
- restore display of selected layer in preview (c3c72d1)
- several styling and functional issues (06e98d8)
- remove ui components (ad66adc)
4.0.0 (2024-04-30)
4.0.0-beta.4 (2024-04-04)
- ol 9 is now the minimum required peer version
- update peer dependencies (c57370c)
4.0.0-beta.3 (2024-03-11)
- introduce wfs hook (a9b17c2)
- null check for searchConfig (29f0797)
- set features and loading state to init values for empty search term (4cb06b7)
4.0.0-beta.2 (2024-02-29)
- introduce useCoordinateInfoHook (45a132a)
- introduce useNominatim hook (db4375b)
- introduce useProjFromEpsgIO hook (8cf5fb2)
- adds missing inkmap dependency (83eb5c5)
- remove @types-react from peer-dependencies (0cebe8b)
- use async function call and return CoordinateInfoResult directly (894cd83)
4.0.0-beta.1 (2024-02-16)
- ol 8.2.0 is now the minimum required peer version
- add zoomTo util function (e3fb4ee)
- typings of digitize layer (51e301e)
- update to ol 8.2.0 (ddbd97a)
4.0.0-beta.0 (2023-10-26)
- imports must be adjusted
- imports must be adjusted
- removed all HOCs in favour of hooks
- updates several hook export paths
- move HOCs to hooks (ac6ef33)
- export all default exports (b184210)
- harmonize hooks files/folders (6eae470)
- hide the layer depending on the active status and add NaN check (2508d21)
- list required peer dependencies (17ec6ff)
- place components in dedicated subdirectory (8c9bc29)
- rename hooks directory to Hooks (36597a2)
- replace react-geo statics with react-util (8fb8353)
- set correct import paths (6472a3a)
- update doc (9157002)