MyGit

v7.2.0

openlayers/openlayers

版本发布时间: 2022-12-21 23:10:36

openlayers/openlayers最新发布版本:v10.2.1(2024-09-27 04:27:34)

The 7.2 release includes …

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: https://github.com/openlayers/openlayers/compare/v7.1.0...v7.2.0

相关地址:原始地址 下载(tar) 下载(zip)

1、 v7.2.0-package.zip 1.29MB

2、 v7.2.0-site.zip 13.01MB

查看:2022-12-21发行的版本