OpenLayers
The 9.2.4 is a patch release that addresses the issue below.
The 9.2.3 is a patch release that addresses the issue below.
The 9.2.2 is a patch release that addresses the issues below.
The 9.2.1 release patches the 9.2.0 release with a fix for a TypeScript issue using vector layers.
See below for a complete list of features and fixes.
The 9.2 release fixes a number of rendering issues and introduces a few new features. OGC tile sources now support collections selection. Snap events are now more consistent (see below). Type annotations continue to improve, and documentation and examples got a number of updates.
snap
event's feature property is now never null
Previously, listeners for the Snap
interaction's snap
event received null
as value for the feature
property when snapped to a segment. Now, the value of the feature
property is always set to the snapped feature.
To distinguish between a vertex and a segment snap, look at the snap
event's segment
property. It will set to null
on a vertex snap, and to the snapped segment on a segment snap.
See below for a complete list of features and fixes.
Full Changelog: https://github.com/openlayers/openlayers/compare/v9.1.0...v9.2.0
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