Skip to content

Releases: openlayers/openlayers

v6.6.1

15 Jul 09:23
a8b949a
Compare
Choose a tag to compare

This is a bugfix release which brings improvements to the included TypeScript types, and fixes two minor issues with the Draw interaction and hit detection of regular shape symbols.

List of all changes

Dependency Updates

v6.6.0

11 Jul 20:15
a59c80f
Compare
Choose a tag to compare

With more than 160 pull requests from 14 contributors, this release brings improved support for using OpenLayers in Node.js environments, a new WKB (well known binary) format, TypeScript declarations in the ol package, and more efficient vector tile rendering. In addition, several examples were added or improved, and many bugs were fixed.

Upgrade notes

Included TypeScript declarations

The ol package now includes TypeScript declarations as *.d.ts files.

If desired, e.g. when you don't want to adjust your code after upgrading from a previous version where you used @types/ol, you can opt out of the included types and use third-party types by specifying aliases in the compilerOptions section of tsconfig.json, e.g.

    "baseUrl": "./",
    "paths": {
      "ol": ["node_modules/@types/ol"],
      "ol/*": ["node_modules/@types/ol/*"]
    },

Deprecation of undefinedHTML option for the MousePosition control

The undefinedHTML option for the MousePosition control has been deprecated and will be removed in a future release. Use the new placeholder option instead.

New placeholder option for the MousePosition control

When the mouse position is not available, the control renders a non-breaking space. To render something else instead,
set the placeholder option. If you want to retain the last position when the mouse leaves the viewport, set
placeholder: false. This will be the default behavior in a future release.

The placeholder option has no effect if the deprecated undefinedHTML option is also used. You should use the placeholder option instead of undefinedHTML.

Deprecation of image render mode for vector tile layers

renderMode: 'image' for vector tile layers has been deprecated. Applications continue to work, but a warning will be issued to the console. To get rid of the warning, simply remove the renderMode option.

New features and improvements

  • New create-ol-app package to create a new app with an OpenLayers map.
  • Improved rendering quality of regular shapes and circles.
  • New placeholder option for better control of the MousePosition control's output.
  • TypeScript generated .d.ts files are now included in the ol package.
  • Improved zDirection option on tile sources to control when the tile z changes on fractional zoom levels.
  • Template mode for the TileDebug source for better debugging of tile coordinate issues.
  • More efficient vector tile rendering to save battery on mobile devices and memory.
  • New 'properties' option on layers for easier use of arbitrary properties in typed environments.
  • Hit detection support when using OffscreenCanvas and workers for rendering.
  • The ol package now uses "type": "module" in package.json for easier use of OpenLayers in Node.js.
  • New WKB (Well-Known Binary) format parser and serializer.
  • Console warning when map container's width or height are zero.
  • New snapToPointer option on the Modify interaction to control user experience when clicking a vertex far away from its center.

List of all changes

Read more

v6.5.0

27 Dec 19:20
f72ab97
Compare
Choose a tag to compare

6.5.0

With more than 110 pull requests, this release not only brings WFS 2.0 support and improved touch support for drawing geometries and querying features. In addition to that, several improvements, many bugs fixes, and nicer API docs and examples have found their way into the 6.5.0 release.

Upgrade notes

Units of the hitTolerance option fixed

Previously, the hitTolerance option of the map's getFeaturesAtPixel(), forEachFeatureAtPixel() and hasFeatureAtPixel() methods behaved differently depending on the devicePixelRatio (or the pixelRatio of the map), because the original value was internally multiplied by the device pixel ratio twice instead of just once. Now this is fixed. Note: The hitTolerance's units are css pixels. The documentation was updated to reflect this.

If your application adjusts for that with code like

{ hitTolerance: 10 / devicePixelRatio, }

you'll have to change that code to

{ hitTolerance: 10, }

New features and improvements

  • New scale option in RegularShape and Circle style constructors
  • WFS 2.0.0 support
  • Added preRender and postRender methods to WebGLLayerRenderer
  • Added className constructor option in ol/layer/Heatmap
  • Added load events for ol/source/Vector
  • New iconUrlFunction option for ol/format/KML
  • Added transition option to OSM and CartoDB sources
  • DragAndDrop interaction support for formats that read ArrayBuffer sources
  • New padding option for ol/View
  • New cancel event for the DragBox interaction
  • When using hitTolerance, detect closest features first
  • Ability to draw Circle geometries with a custom renderer

List of all changes

Read more

v6.4.3

03 Aug 18:06
246aded
Compare
Choose a tag to compare

This is a bugfix release which fixes a performance regression, a rendering issue, and adds improvements to a few examples.

See the v6.4.0 release notes for a complete list of changes and upgrade notes when upgrading from v6.3.x.

List of all changes

Dependency Updates

v6.4.2

30 Jul 21:21
7c93439
Compare
Choose a tag to compare

This is a bugfix release which removes a few regressions that were introduced by v6.4.0, and fixes a few issues in examples.

See the v6.4.0 release notes for a complete list of changes and upgrade notes when upgrading from v6.3.x.

List of all changes

v6.4.1

29 Jul 18:44
577c95e
Compare
Choose a tag to compare

6.4.1

This is a bugfix release which removes a few regressions that were introduced by v6.4.0, and fixes a few issues in examples caused by the website facelift.

List of all changes

Dependency Updates

v6.4.0

26 Jul 19:06
b1c2d63
Compare
Choose a tag to compare

With more than 120 pull requests, this release brings a facelift of the website, as well as many bug fixes and several exciting new features.

Upgrade notes

Pointer events polyfill removed

Now that all major browsers support Pointer events natively, we removed the elm-pep dependency. If you are targeting older browsers that do not support Pointer events, you now need to include a pointer events polyfill (elm-pep or pepjs) in your application.

New features and improvements

  • Several event handling fixes and improvements for seamless integration into scrollable web pages and improved support for maps in web components.
  • Map interactions work again when ol.css is not included in the build.
  • More stable map views with decluttered labels during panning.
  • Image smoothing can be disabled, so raster cells can have sharp edges in image layers now.
  • Better cache management for tile layers.
  • Retina/HiDPI support for regular shape and svg icon styles.

List of all changes

Read more

v6.3.1

06 Apr 07:29
af9f26b
Compare
Choose a tag to compare

This is a bugfix release which removes the auto-generated .d.ts TypeScript type files from the published package.

List of all changes

v6.3.0

02 Apr 20:44
bdf969c
Compare
Choose a tag to compare

With more than 70 pull requests, this release not only brings significant improvements to the API documentation. It also fixes some old bugs and brings frequently requested improvements. And good news for TypeScript users: OpenLayers now ships with type definitions in .d.ts files.

New features and improvements

  • Several improvements to the Graticule layer, like consistent labeling, no more missing graticule lines, and it now works for views that cross the date line.
  • Better support for KML icon colors, as well as fills and outlines in PolyStyle
  • Better ol/Overlay performance and support for panning off-screen overlays into view
  • Most of the rendering code can now be run in web workers, e.g. to render to an OffscreenCanvas
  • OpenLayers now works fine in web components with shadow root
  • WebGL point layers now support rotation based on feature attributes

List of all changes

Read more

v6.2.1

13 Feb 20:16
c914ac2
Compare
Choose a tag to compare

This is a bugfix release which resolves bundler issues due to a circular dependency, and brings a few documentation and example fixes.

List of all changes