changelog/v6.6.0.md
With more than 160 pull requests from 14 contributors, this release brings improved support for using OpenLayers in Node.js environments, a new WKB (well known binary) format, TypeScript declarations in the ol package, and more efficient vector tile rendering. In addition, several examples were added or improved, and many bugs were fixed.
The ol package now includes TypeScript declarations as *.d.ts files.
If desired, e.g. when you don't want to adjust your code after upgrading from a previous version where you used @types/ol, you can opt out of the included types and use third-party types by specifying aliases in the compilerOptions section of tsconfig.json, e.g.
"baseUrl": "./",
"paths": {
"ol": ["node_modules/@types/ol"],
"ol/*": ["node_modules/@types/ol/*"]
},
undefinedHTML option for the MousePosition controlThe undefinedHTML option for the MousePosition control has been deprecated and will be removed in a future release. Use the new placeholder option instead.
placeholder option for the MousePosition controlWhen the mouse position is not available, the control renders a non-breaking space. To render something else instead,
set the placeholder option. If you want to retain the last position when the mouse leaves the viewport, set
placeholder: false. This will be the default behavior in a future release.
The placeholder option has no effect if the deprecated undefinedHTML option is also used. You should use the placeholder option instead of undefinedHTML.
image render mode for vector tile layersrenderMode: 'image' for vector tile layers has been deprecated. Applications continue to work, but a warning will be issued to the console. To get rid of the warning, simply remove the renderMode option.
placeholder option for better control of the MousePosition control's output..d.ts files are now included in the ol package.zDirection option on tile sources to control when the tile z changes on fractional zoom levels.TileDebug source for better debugging of tile coordinate issues."type": "module" in package.json for easier use of OpenLayers in Node.js.snapToPointer option on the Modify interaction to control user experience when clicking a vertex far away from its center.