10 KiB
10 KiB
v3.12.0
Summary
The v3.12.0 release includes features and fixes from 71 pull requests since the v3.11.2 release. New features and improvements include:
- Tile coordinate wrapping for raster reprojection.
- Support for multi-line labels.
- Allow rendering geometries to an arbitrary canvas (useful for vector legends).
Upgrade notes
ol.Map#forEachFeatureAtPixel changes
The optional layerFilter function is now also called for unmanaged layers. To get the same behaviour as before, wrap your layer filter code in an if block like this:
function layerFilter(layer) {
if (map.getLayers().getArray().indexOf(layer) !== -1) {
// existing layer filter code
}
}
Full list of changes
- #4559 - Fix up failing KML test in Firefox (@bartvde)
- #4561 - Exclude feature loader MVT test from IE9 (@bartvde)
- #4552 - Make sure compiled code calls ol.VectorTile#setProjection (@ahocevar)
- #4551 - Handle tile coordinate wrapping when reprojecting raster tiles (@klokantech)
- #4544 - Update vector-tile to version 1.2.0 🚀 (@openlayers)
- #4537 - Allow specifying non default DPI on ol.source.TileArcGISRest (@bartvde)
- #4548 - Improve vector tile related docs (@ahocevar)
- #4549 - Update vector label example (@tsauerwein)
- #4512 - Support for multi-line labels (improved) (@flightaware)
- #4546 - Update coveralls to version 2.11.6 🚀 (@openlayers)
- #4539 - Ignore index.html in example list (@fredj)
- #4536 - Register the change callback when the tile is enqueued (@fredj)
- #4528 - Remove redundant code from ol.featureloader.tile (@ahocevar)
- #4535 - Do not use an array for a single style (@ahocevar)
- #4532 - Mark olx.source.WMTSOptions#dimensions as not null (@fredj)
- #4530 - Remove use of goog.isNull (@fredj)
- #4529 - Update coding style rules (@fredj)
- #4518 - Add support for OSM vector tiles (@ahocevar)
- #4524 - Add example for rendering custom point symbols (@ahocevar)
- #4523 - Allow rendering geometries to an arbitrary canvas (@ahocevar)
- #4525 - Make render tests work on more devices (@ahocevar)
- #4515 - Accept HTMLCanvasElement for an icon's img (@ahocevar)
- #4521 - Fix imagestyle docs (@ahocevar)
- #4508 - Remove unused files (@fredj)
- #4487 - Remove fallback css color (@fredj)
- #4502 - Improve ol.source.WMTS.optionsFromCapabilities jsdoc layout (@fredj)
- #4511 - Minor code cleanup (@fredj)
- #4510 - Adding a check just in case the projection is not defined/supported (@GeoCat)
- #4505 - Remove use of goog.object.getKeys (@fredj)
- #4472 - Do not ignore layer filter for unmanaged layers (@ahocevar)
- #4476 - Remove use of goog.functions.constant (@fredj)
- #4484 - Remove use of goog.dom.createDom (@fredj)
- #4486 - Remove note about DragZoom and vector support (@fredj)
- #4483 - Remove use of goog.object.containsKey (@fredj)
- #4475 - Fix up failing tests in Internet Explorer (@bartvde)
- #4485 - Use appendChild instead of goog.dom.append (@fredj)
- #4481 - Remove blur workaround in ol.control.Attribution (@fredj)
- #4479 - Export ol.interaction.Interaction#getMap function (@fredj)
- #4478 - Fix olx.control.FullScreenOptions#label apidoc (@fredj)
- #4477 - Replace goog.nullFunction with ol.nullFunction (@fredj)
- #4474 - Remove use of goog.dom.createElement and goog.dom.createTextNode (@fredj)
- #4469 - Upgrade to JSTS 0.17.0 in example (@bjornharrtell)
- #4465 - Update handlebars to version 4.0.5 🚀 (@openlayers)
- #4464 - Merge in changes from the 3.11.2 release. (@openlayers)
- #4463 - Remove use of goog.array.sort (@fredj)
- #4450 - Fix select interaction regression caused by #4391 (@ahocevar)
- #4458 - Remove extra space in type annotation (@fredj)
- #4420 - Remove Bootstrap and jQuery from example snippets. (@openlayers)
- #4442 - Use jsdoc@3.4.0. (@tschaub)
- #4449 - Change the label of the full screen button to be more intuitive (@bartvde)
- #4448 - Check ol.source.UrlTile#urls property for null value (@fredj)
- #4440 - Raster reprojection tutorial (@klokantech)
- #4439 - Allow '' for crossOrigin (as Anonymous alias) (@ahocevar)
- #4429 - Dispatch a change event only if the value changes (@fredj)
- #4435 - Remove unnecessary cast (@fredj)
- #4434 - Remove unused local variables (@fredj)
- #4433 - Remove unused local variables (@fredj)
- #4140 - Add flight animation example (@tsauerwein)
- #4428 - Add imageSize regression test for ol.source.ImageWMS (@ahocevar)
- #4426 - Improve ol.source.StaticImage (@ahocevar)
- #4425 - Test number property with !== undefined (@fredj)
- #4423 - Update mocha to version 2.3.4 🚀 (@openlayers)
- #4416 - Update clean-css to version 3.4.8 🚀 (@openlayers)
- #4415 - Scale StaticImage image to imageExtent (@ahocevar)
- #4414 - Remove ol.ImageUrlFunction (@ahocevar)
- #4389 - Smooth transitions on parameter changes (@elemoine)
- #4410 - Merge in changes from the 3.11.1 release. (@openlayers)
- #4401 - Allow style function to return a style. (@tschaub)
- #4404 - Set correctly the opt_this parameter when writing a KML document (@oterral)
- #4397 - Update glob to version 6.0.1 🚀 (@openlayers)
- #4362 - Rotate control now takes optional resetNorth function. (@tamarmot)