Skip to content

v6.5.0

Compare
Choose a tag to compare
@ahocevar ahocevar released this 27 Dec 19:20
· 5772 commits to main since this release
f72ab97

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

Dependency Updates