OpenLayers
The 9.1 release fixes a few rendering regressions introduced in v9.0. It introduces bulk feature removal in Vector sources, addresses attribution consistency, includes new style operators, and adds the Alidade Satellite style to the Stamen source. Moreover, it ensures compliance with Google's terms of use for attribution handling of the Google source.
change:size
event in Attributions example by @mike-000 in https://github.com/openlayers/openlayers/pull/15603
ZoomToExtent
in breaking changes of v9.0.0
by @JakobMiksch in https://github.com/openlayers/openlayers/pull/15616
Full Changelog: https://github.com/openlayers/openlayers/compare/v9.0.0...v9.1.0
The 9.0 release adds several new features, including a Google Maps source (finally!), improved WebGL line rendering, and a new symbol and text decluttering implementation. We also improved and broadened flat styles support for both WebGL and Canvas 2D renderers. For better developer experience, we made more types generic and fixed some issues with types.
Decluttered items in Vector and VectorTile layers now maintain the render order of the layers and within a layer. They do not get lifted to a higher place in the stack any more.
For most use cases, this is the desired behavior. If, however, you've been relying on the previous behavior, you now have to create separate layers above the layer stack, with just the styles for the declutter items.
Map#flushDeclutterItems()
It is no longer necessary to call this function to put layers above decluttered symbols and text, because decluttering no longer lifts elements above the layer stack.
To upgrade, simply remove the code where you use the flushDeclutterItems()
method.
ol/style
ol/style/RegularShape
's radius1
property. Use radius
for regular polygons or radius
and radius2
for stars.shape-radius1
property from ol/style/flat~FlatShape
. Use shape-radius
instead.GeometryCollection
constructorol/geom/GeometryCollection
can no longer be created without providing a Geometry array. Empty arrays are still valid.
ol/interaction/Draw
finishDrawing()
method now returns the drawn feature or null
if no drawing could be finished. Previously it returned undefined
.updateParams
in ImageMapGuide and ImageArcGISRest by @mike-000 in https://github.com/openlayers/openlayers/pull/15410
geometry-type
operator in CPU by @jahow in https://github.com/openlayers/openlayers/pull/15414
orderedAxes
before defaulting to projection axis orientation by @mike-000 in https://github.com/openlayers/openlayers/pull/15524
wmtsCap['Contents']['Layer']
could be undefined by @nboisteault in https://github.com/openlayers/openlayers/pull/15525
Full Changelog: https://github.com/openlayers/openlayers/compare/v8.2.0...v9.0.0
The 8.2 release includes fixes for a few bugs in the 8.1 release and a couple new enhancements, including new WebGL features and support for ol/render/Feature
for vector layers. Nothing special is required when upgrading from 8.1. Only TypeScript users might have to make minor changes, because some types have been made more strict.
See below for a complete list of features and fixes.
apiKey
and retina
properties optional (by @ahocevar in https://github.com/openlayers/openlayers/pull/15278)fromUserResolution
and toUserResolution
for useGeographic()
(by @kikuchan in https://github.com/openlayers/openlayers/pull/15214)updateSize
and updateViewportSize_
(by @simonseyock in https://github.com/openlayers/openlayers/pull/15269)touch-action: pan-x pan-y;
on viewport (by @mike-000 in https://github.com/openlayers/openlayers/pull/15208)src
is not set (by @mike-000 in https://github.com/openlayers/openlayers/pull/15094)Full Changelog: https://github.com/openlayers/openlayers/compare/v8.1.0...v8.2.0
The 8.1 release includes fixes for a few bugs in the 8.0 release and a couple new enhancements. Nothing special is required when upgrading from 8.0. See the upgrade notes for details on upgrading from a 7.x release.
See below for a complete list of features and fixes.
Full Changelog: https://github.com/openlayers/openlayers/compare/v8.0.0...v8.1.0
The 8.0 release brings several API simplifications. Some of them are not backwards compatible, so make sure to read the upgrade notes. The new StadiaMaps source replaces the Stamen source, because Stamen no longer hosts map tiles. Several WebGL improvements are also part of this release. And finally, a new loader API for image layers makes working with non-tiled raster data more modular and faster.
See below for a complete list of features and fixes.
caption-side
in featureInfo styles (by @mike-000 in https://github.com/openlayers/openlayers/pull/15002)Full Changelog: https://github.com/openlayers/openlayers/compare/v7.5.2...v8.0.0
The 7.5.2 is a patch release that includes a fix for hit detection on Vector and VectorTile layers configured with declutter: true
. See the 7.5.0 release notes for a complete list of changes since the previous release.
The 7.5.1 is a patch release that includes a couple fixes to TypeScript declarations published with the package. See the 7.5.0 release notes for a complete list of changes since the previous release.
The 7.5 release includes a solid batch of new features and fixes. Among the improvements, you'll find more control over label decluttering, improved WebGL semi-transparent tile rendering, more consistency hit detecting transparent items, improvements with WebGL vector rendering, fixes for raster source loading, and more.
No special changes should be required when upgrading from previous 7.x releases. See the upgrade notes for a few minor changes in behavior.
See below for a complete list of features and fixes.
touch-action: none;
for elements in viewport (by @mike-000 in https://github.com/openlayers/openlayers/pull/14906)+nadgrids
for fromEPSGCode()
(by @mike-000 in https://github.com/openlayers/openlayers/pull/14692)geometry-type
operator, fix exponential interpolate
(by @jahow in https://github.com/openlayers/openlayers/pull/14837)Full Changelog: https://github.com/openlayers/openlayers/compare/v7.4.0...v7.5.0
The 7.4 release includes WebGL vector tiles along with several improvements to vector styling of WebGL layers, a new interaction for one-finger zooming on touch devices, and support for way geometries in the OSMXML parser. Several bug fixes for working with user projections and performance improvements for WebGL tile rendering are also on on board.
Full Changelog: https://github.com/openlayers/openlayers/compare/v7.3.0...v7.4.0
The 7.3 release includes rendering performance improvements with many layers, performance improvements when snapping during editing, and a handful of useful fixes. See the detailed list of changes below. Nothing special should be required when upgrading from the 7.2 release. Thanks to those who contributed!
See below for a complete list of features and fixes.
ol/View
when using useGeographic()
(by @kikuchan in https://github.com/openlayers/openlayers/pull/14531)event.key
instead of event.charCode
(by @WebKieth in https://github.com/openlayers/openlayers/pull/14492)isVisible()
and getAttributions()
methods on Layer (by @ahocevar in https://github.com/openlayers/openlayers/pull/14476)ol/source/Raster
(by @mike-000 in https://github.com/openlayers/openlayers/pull/14414)Full Changelog: https://github.com/openlayers/openlayers/compare/v7.2.2...v7.3.0