Skip to content

Latest commit

Β 

History

History
203 lines (187 loc) Β· 23.4 KB

v3.19.0.md

File metadata and controls

203 lines (187 loc) Β· 23.4 KB

v3.19.0

Summary

The v3.19.0 release includes features and fixes from a little more than 120 pull requests with more than 380 commits. Most of the changes are bug fixes, documentation enhancements or target the continuing removal of the dependency on Closure Library. Some notable new or enhanced features are:

  • Vector fills with CanvasGradient or CanvasPattern now move and rotate with the map which is far more intuitive (#5950)
  • Drawing in freehand-mode also became more intuitive (#5970, #5973, #5975)
  • When tiles of different resolutions are combined for a layer (which is the case before all tiles of the best resolution have been loaded), lower resolution tiles now align with higher resolution tiles resulting in a map without gaps (#5890)
  • Styles can now easily be cloned (#5832)

Additionally the openlayers.org homepage is now available via the https-protocol.

Upgrade notes

ol.style.Fill with CanvasGradient or CanvasPattern

Previously, gradients and patterns were aligned with the canvas, so they did not move and rotate with the map. This was changed to a more expected behavior by anchoring the fill to the map origin (usually at map coordinate [0, 0]).

goog.DEBUG define was renamed to ol.DEBUG

As last step in the removal of the dependency on Google Closure Library, the goog.DEBUG compiler define was renamed to ol.DEBUG. Please change accordingly in your custom build configuration json files.

ol.format.ogc.filter namespace was renamed to ol.format.filter

ol.format.ogc.filter was simplified to ol.format.filter; to upgrade your code, simply remove the ogc string from the name. For example: ol.format.ogc.filter.and to ol.format.filter.and.

Changes only relevant to those who compile their applications together with the Closure Compiler

A number of internal types have been renamed. This will not affect those who use the API provided by the library, but if you are compiling your application together with OpenLayers and using type names, you'll need to do the following:

  • rename ol.CollectionProperty to ol.Collection.Property
  • rename ol.DeviceOrientationProperty to ol.DeviceOrientation.Property
  • rename ol.DragBoxEvent to ol.interaction.DragBox.Event
  • rename ol.DragBoxEventType to ol.interaction.DragBox.EventType
  • rename ol.GeolocationProperty to ol.Geolocation.Property
  • rename ol.OverlayPositioning to ol.Overlay.Positioning
  • rename ol.OverlayProperty to ol.Overlay.Property
  • rename ol.control.MousePositionProperty to ol.control.MousePosition.Property
  • rename ol.format.IGCZ to ol.format.IGC.Z
  • rename ol.interaction.InteractionProperty to ol.interaction.Interaction.Property
  • rename ol.interaction.DrawMode to ol.interaction.Draw.Mode
  • rename ol.interaction.DrawEvent to ol.interaction.Draw.Event
  • rename ol.interaction.DrawEventType to ol.interaction.Draw.EventType
  • rename ol.interaction.ExtentEvent to ol.interaction.Extent.Event
  • rename ol.interaction.ExtentEventType to ol.interaction.Extent.EventType
  • rename ol.interaction.DragAndDropEvent to ol.interaction.DragAndDrop.Event
  • rename ol.interaction.DragAndDropEventType to ol.interaction.DragAndDrop.EventType
  • rename ol.interaction.ModifyEvent to ol.interaction.Modify.Event
  • rename ol.interaction.SelectEvent to ol.interaction.Select.Event
  • rename ol.interaction.SelectEventType to ol.interaction.Select.EventType
  • rename ol.interaction.TranslateEvent to ol.interaction.Translate.Event
  • rename ol.interaction.TranslateEventType to ol.interaction.Translate.EventType
  • rename ol.layer.GroupProperty to ol.layer.Group.Property
  • rename ol.layer.HeatmapLayerProperty to ol.layer.Heatmap.Property
  • rename ol.layer.TileProperty to ol.layer.Tile.Property
  • rename ol.layer.VectorTileRenderType to ol.layer.VectorTile.RenderType
  • rename ol.MapEventType to ol.MapEvent.Type
  • rename ol.MapProperty to ol.Map.Property
  • rename ol.ModifyEventType to ol.interaction.Modify.EventType
  • rename ol.RendererType to ol.renderer.Type
  • rename ol.render.EventType to ol.render.Event.Type
  • rename ol.source.ImageEvent to ol.source.Image.Event
  • rename ol.source.ImageEventType to ol.source.Image.EventType
  • rename ol.source.RasterEvent to ol.source.Raster.Event
  • rename ol.source.RasterEventType to ol.source.Raster.EventType
  • rename ol.source.TileEvent to ol.source.Tile.Event
  • rename ol.source.TileEventType to ol.source.Tile.EventType
  • rename ol.source.VectorEvent to ol.source.Vector.Event
  • rename ol.source.VectorEventType to ol.source.Vector.EventType
  • rename ol.source.wms.ServerType to ol.source.WMSServerType
  • rename ol.source.WMTSRequestEncoding to ol.source.WMTS.RequestEncoding
  • rename ol.style.IconAnchorUnits to ol.style.Icon.AnchorUnits
  • rename ol.style.IconOrigin to ol.style.Icon.Origin

Full list of changes