Skip to content

v7.2.0

Compare
Choose a tag to compare
@github-actions github-actions released this 21 Dec 15:10
· 1769 commits to main since this release

The 7.2 release includes …

  • …some new features (e.g. for icon styling),
  • …performance optimisations (e.g. for canvas rendering),
  • …better interoperability (e.g. OGC API - Tiles support, saner projection-handling for GeoTIFFs and a new PMTiles example),
  • …the usual smaller bugfixes, and
  • …a lot of dependency updates.

Please find below four aspects of this release that we want to highlight and make
sure to scan over the full list of included changes (even further below).

OGC vector and map tile sources are now a stable part of the API

The OGC API – Tiles core v1 spec has been published, and as a consequence we marked the long existing vector and map tile sources as part of the stable API.

Introduce width and height configuration options to Icon styles

It is now possible to create an icon symbolizer with an explicit width and/or height, e.g.:

const myIcon = new Icon({
  src: 'data/icon.png',
  width: 32,
  height: 32
});

This is an additional configuration option to make working with image icons easier.

Rendered resolutions of ol/source/Raster

Previously, ol/source/Raster processed input sources at the current view resolution, which caused interpolation artefacts in cases where input sources were up- or downsampled. Now, ol/source/Raster picks up the resolutions from the first input source that has resolutions configured (either implicitly through a tile grid in the case of tile sources, or directly when configured through the resolutions constructor option). This improves the rendered output in most cases.

If the previous behavior is desired, configure the source with resolutions: null.

Fixed wrapX behavior of ol/control/MousePosition

Previously, ol/control/MousePosition always displayed coordinates as-is. Now it has a wrapX option,
which is true by default. This avoids longitudes aoutside the -180 to 180 degrees range.

If you want the previous behavior, which displays coordinates with longitudes less than -180 or greater than 180, configure the control with wrapX: false.

List of all changes

See below for a complete list of features and fixes.

Dependency Updates

New Contributors

Full Changelog: v7.1.0...v7.2.0