npm ol 6.5.0

latest releases: 7.3.1-dev.1678058258888, 7.3.1-dev.1677975735802, 7.3.0...
3 years ago

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

Don't miss a new ol release

NewReleases is sending notifications on new releases.