v5.2.0
The 5.2 release adds a few new features a handful of fixes, including regressions that were reported after the 5.1 release. You should be able to upgrade without any additional work. See the one note below regarding snapToPixel
on ol/style/Image
and subclasses.
We're still working toward type checking with TypeScript. Until that is complete, we apologize for some flwas in the online API documentation. We're excited about the improved experience for application developers when the effort is finished, and will highlight some of the benefit in upcoming releases.
Upgrade Notes
Removal of the snapToPixel
option for ol/style/Image
subclasses
The snapToPixel
option has been removed, and the getSnapToPixel
and setSnapToPixel
methods are deprecated.
The renderer now snaps to integer pixels when no interaction or animation is running to get crisp rendering. During interaction or animation, it does not snap to integer pixels to avoid jitter.
When rendering with the Immediate API, symbols will no longer be snapped to integer pixels. To get crisp images, set context.imageSmoothingEnabled = false
before rendering with the Immediate API, and context.imageSmoothingEnabled = true
afterwards.
New Features and Fixes
- #8511 - Update IGN API key (@openlayers)
- #8547 - Fix port number in developing doc (@pgiraud)
- #8546 - Update projection FAQ for v5 (@ahocevar)
- #8481 - Expose some internal functions (@gberaudo)
- #8510 - Fix WMTS URLs with dimensions (@gberaudo)
- #8524 - Fix compatiblity with XHTML content type (@NeoRaider)
- #8532 - Add 'rendercomplete' event (@ahocevar)
- #8529 - Update link to base class in docs (@TDesjardins)
- #8528 - Update link to base class in docs (@TDesjardins)
- #8525 - Re-export Projection from ol/proj for convenience (@tschaub)
- #8499 - Round center in viewState to pixels (@ahocevar)
- #8520 - Remove redundant if block (@openlayers)
- #8515 - More convenient select and sketch layer management (@ahocevar)
- #8503 - Avoid block scope issues in transpiled code (@ahocevar)
- #8490 - WMTS getCapabilities readCoodinates more than one whitespace delimiter (@MarquesDeAzevedo)
- #8489 - Use .prototype. only where necessary (@ahocevar)
- #8478 - Check font availability with multiple font weights (@ahocevar)
- #8483 - Don't create Polygon with null coordinates (@fredj)
- #8471 - Add getUrl and getImageExtent to ImageStatic API (@samuel-girard)
- #8470 - Update Tile loading API docs (@scroach)
- #8477 - Expose original getGutter (@gberaudo)
- #8466 - Add onFocusOnly option to interaction defaults (@ahocevar)
- #8465 - Do not prevent default on pointermove (@ahocevar)
- #8461 - Fix double backtick typo (@lionralfs)
- #8452 - Remove extra translate function in Geometry, add missing api tag (@fredj)
- #8451 - Remove unimplemented functions (@fredj)
- #8450 - Mark properties of ReadOptions and WriteOptions as optional (@fredj)
- #8443 - Explicit void (@tschaub)
- #8437 - Avoid shadowing EventTarget (@tschaub)
- #8439 - Fewer dots in types (@tschaub)
- #8441 - Fix loaded script for the example-verbatim examples (@fredj)
- #8435 - Call setCoordinates on the point instance (@fredj)
- #8428 - Type name on same line as type (@tschaub)
- #8422 - Improve JSDoc such that
ng build --prod
with angular/cli 6.0.8 succeeds again (@jkoelewijn) - #8396 - Fix ol.interaction.Draw~createRegularPolygon (@iamplex)
- #8420 - Keep function names when building examples (@ahocevar)
- #8419 - Release v5.1.3 (@tschaub)
- #8417 - Minor doc updates (@tschaub)
- #8418 - Set api annotation on classdesc, not constructor (@ahocevar)
- #8414 - Updates for 5.1.2 (@tschaub)
- #8413 - Remove extra curly in type (@tschaub)
- #8412 - Changes for 5.1.1. (@tschaub)
Dependency Updates
- #8543 - Update rollup to the latest version 🚀 (@openlayers)
- #8541 - Update proj4 to the latest version 🚀 (@openlayers)
- #8542 - Update rollup-plugin-commonjs to the latest version 🚀 (@openlayers)
- #8533 - Update webpack to the latest version 🚀 (@openlayers)
- #8530 - Update webpack to the latest version 🚀 (@openlayers)
- #8522 - Update marked to the latest version 🚀 (@openlayers)
- #8505 - Update karma to the latest version 🚀 (@openlayers)
- #8501 - Update rollup-plugin-commonjs to the latest version 🚀 (@openlayers)
- #8495 - Update rollup to the latest version 🚀 (@openlayers)
- #8493 - Update clean-css-cli to the latest version 🚀 (@openlayers)
- #8491 - Update rollup to the latest version 🚀 (@openlayers)
- #8486 - Update webpack to the latest version 🚀 (@openlayers)
- #8476 - Update webpack to the latest version 🚀 (@openlayers)
- #8475 - Update clean-css-cli to the latest version 🚀 (@openlayers)
- #8469 - Update rollup to the latest version 🚀 (@openlayers)
- #8453 - Update webpack to the latest version 🚀 (@openlayers)
- #8447 - Update rollup-plugin-commonjs to the latest version 🚀 (@openlayers)
- #8426 - Update webpack to the latest version 🚀 (@openlayers)