21.0.0 (2024-10-21)
- bump eslint to v9 (17fbc94)
- bump eslint to v9
20.0.0 (2024-09-20)
- update to ol 10 (6aca6b3)
- required peer dependency for ol is now >=10
19.0.1 (2024-08-12)
- fixes the function so it accepts packages that do not return an array (ab08107)
19.0.0 (2024-05-24)
- ol-util now produces a ESM build, so downstream apps need to include it in their bundler when transpiling for the browser.
18.0.1 (2024-05-16)
- use WmsLayer type in getExtent function (ad0b70a)
18.0.0 (2024-05-14)
- removes the
WMSLayer
type fromMapUtils
. UseWmsLayer
from typeUtils instead. - removes the
LayerUtil.isOlSource(source)
etc. functions in favor ofinstanceof
checks
17.0.1 (2024-05-10)
- update getExtentForLayer (8475afa)
17.0.0 (2024-04-02)
- Updates the ol peerDependency to version 9
16.0.0 (2024-03-05)
- allow olFilter instances in WfsFilterUtil (1e01896)
- createWfsFilter returs an OLFilter instance / undefined now
15.0.1 (2024-03-01)
- adds required peer dependencies for ts-eslint (3665caa)
15.0.0 (2024-01-18)
- update to ol 8.2.0 (1416bc9)
- updated peer dependency for ol since some typings become more strict
14.0.0 (2023-10-09)
- add comment for the decimal precision parameter (868cd7b)
- added getLength decimal precision for non geodesic map (622c40a)
- set length decimal precision to function parameters (eadd2ff)
- change default decimal precision to 10^6
- change default decimal precision to 10^6
- change default decimal precision to 10^6
13.0.0 (2023-09-05)
- bump ol dependency to 8.x (8398356)
- set ol peer dependency to version 8
12.0.1 (2023-09-03)
- remove no longer available snyk badge (498af80)
12.0.0 (2023-08-31)
- calculation of circle area for metrical and spherical units (7437a54)
- fix circle area calculation (59045eb)
- fix getArea for circles (38a95f7)
- set peer dependency for OpenLayers to ^7
- require node v18
11.1.0 (2023-07-19)
- linting issues (4e1698e)
- add formatArea for circles (4a50106)
11.0.0 (2023-06-26)
- adds check for capabilities structure (a43def5)
- replace xml2js by fast-xml-parser (9c69e91)
- the installation of packages timers and stream is not required any more
10.3.1 (2023-06-20)
- fix extent determination for getCapabilities requests v1.1.0 or v1.1.1 (c838b8d)
- fix instance check (912b3ab)
10.3.0 (2023-05-15)
- util to set visiblity for a list of layers (f250e56)
10.2.4 (2023-03-07)
- fix wfs filter builder (0f59f14)
10.2.3 (2023-02-17)
- moveFeature in AnimateUtil (c35ca3b)
10.2.2 (2023-02-06)
- wfs query append (9358966)
10.2.1 (2023-01-26)
- reintroduces the use of propertyNames (c222326)
10.2.0 (2023-01-23)
10.1.3 (2022-12-15)
- source type detection in production builds (e1f9595)
10.1.2 (2022-12-13)
- printing with inkmap decoupled from openlayers version (2a01705)
10.1.1 (2022-12-12)
- adjusts filter in permalink for image layer (a977ac5)
10.1.0 (2022-12-12)
- tests adjusted to legend graphic request param (fca5780)
- get legend url for wmts from layer property (589e981)
10.0.1 (2022-12-09)
10.0.0 (2022-11-15)
- restore attribute config object for multiple feature types (776c2f2)
- attributeDetails expects a nested object mapping requestable feature types to their attribute details
9.0.0 (2022-11-14)
- adaptaions after ol7 upgrade (15edac9)
- fix import after ol upgrade (8f07aa6)
- get rid of unnecessary quotes (10eb361)
- upgrade to ol7 (0c64775)
- set ol peer dependency to 7.1
8.1.0 (2022-10-28)
- export of compiled sources and location of test assets (638996a)
- output directory of docs required for build pipeline (3625867)
- remove uneeded release phase (626b768)
- set correct default branch (6c528d1)
- introduce commitlint to use predefined commit message conventions (1422aa5)
- introduce semantic-release plugin (9cbe0c0)
- Adds typings for all util functions. This may lead to type conflicts in certain projects
CapabilitiesUtil.parseWmsCapabilities(…)
has been removed. Can be replaced byCapabilitiesUtil.getWmsCapabilities(…)
GeomtryUtil
- Use
ProjectionLike
(OpenLayers ype) instead ofstring
for projections separateGeometries
can either handle simple geometry or geometry array now
- Use
MapUtil
- remove
getInteractionsByClass
in MapUtils - Instead:- set name to interaction and use
getInteractionByName
- filter interactions using
typeof
in your project
- set name to interaction and use
ProjectionUtil
:- Crs definitions are typed now and
defaultProj4CrsDefinitions
moved to an array ofCrsDefinition
- if custom definitions are used in
initProj4Definitions
these have to migrated in the following way:
has to be migrated to{ 'EPSG:25832': '+proj=utm +zone=32 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs', 'EPSG:25833': '+proj=utm +zone=33 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs' }
[{ crsCode: 'EPSG:25832', definition: '+proj=utm +zone=32 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs' }, { crsCode: 'EPSG:25833', definition: '+proj=utm +zone=33 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs'} }]
- if custom definitions are used in
- Crs mappings are typed now and
defaultProj4CrsMappings
moved to an array ofCrsMapping
- if custom definitions are used in
initProj4DefinitionMappings
these have to migrated in the following way:
has to be migrated to{ 'urn:ogc:def:crs:EPSG::25832': 'EPSG:25832', 'urn:ogc:def:crs:EPSG::25833': 'EPSG:25833' }
[{ alias: 'urn:ogc:def:crs:EPSG::25832', mappedCode: 'EPSG:25832' }, { alias: 'urn:ogc:def:crs:EPSG::25833', mappedCode: 'EPSG:25833' }]
- if custom definitions are used in
- Crs definitions are typed now and
- remove
WfsFilterUtil
has completely been overhauled:- in contrast to the migrated
WfsFilterUtil
, from now on the search / filter has to be configured using the new typeSearchConfig
. - For example: a filter creation for an exact search of
my search term
in attributename
of feature typeTEST:MYTYPE
looks like this:
const attributeDetails: AttributeDetails [] = [{ type: 'string', exactSearch: true, attributeName: 'name' }]; const searchTerm = 'my search term'; const filter = WfsFilterUtil.createWfsFilter(searchTerm, attributeDetails); };
- in contrast to the migrated