From be41da34ef9213545d8c3d7bed8dd542379504a9 Mon Sep 17 00:00:00 2001 From: Marc Jansen Date: Tue, 3 May 2022 22:15:52 +0200 Subject: [PATCH 1/2] Fix a typo in upgrade notes Introduced in https://github.com/openlayers/openlayers/pull/13637 --- changelog/upgrade-notes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelog/upgrade-notes.md b/changelog/upgrade-notes.md index 83656c80bc..65724a0829 100644 --- a/changelog/upgrade-notes.md +++ b/changelog/upgrade-notes.md @@ -2,7 +2,7 @@ ### v6.15.0 -#### Fixed coordinate dimesion handling in `ol/proj`'s `addCoordinateTransforms` +#### Fixed coordinate dimension handling in `ol/proj`'s `addCoordinateTransforms` The `forward` and `inverse` functions passed to `addCooordinateTransforms` now receive a coordinate with all dimensions of the original coordinate, not just two. If you previosly had coordinates with more than two dimensions and added a transform like ```js From 5f130fb261843252d6c32eb1a41bca20d9f70ab6 Mon Sep 17 00:00:00 2001 From: Marc Jansen Date: Tue, 3 May 2022 23:10:20 +0200 Subject: [PATCH 2/2] Properly close quotes --- changelog/upgrade-notes.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/changelog/upgrade-notes.md b/changelog/upgrade-notes.md index 65724a0829..f05ab8ae73 100644 --- a/changelog/upgrade-notes.md +++ b/changelog/upgrade-notes.md @@ -8,7 +8,7 @@ The `forward` and `inverse` functions passed to `addCooordinateTransforms` now r ```js addCoordinateTransforms( 'EPSG:4326', - new Projection({code: 'latlong', units: 'degrees}), + new Projection({code: 'latlong', units: 'degrees'}), function(coordinate) { return coordinate.reverse(); }, function(coordinate) { return coordinate.reverse(); } ); @@ -17,7 +17,7 @@ you have to change that to ```js addCoordinateTransforms( 'EPSG:4326', - new Projection({code: 'latlong', units: 'degrees}), + new Projection({code: 'latlong', units: 'degrees'}), function(coordinate) { return coordinate.slice(0, 2).reverse() }, function(coordinate) { return coordinate.slice(0, 2).reverse() } );