11 KiB
v3.13.0
Summary
The v3.13.0 release includes features and fixes from 68 pull requests since the v3.12.1 release. New features and improvements include:
- Improved tiles rendering for the canvas renderer
- Improved MapQuest rendering
- Add color option to ol.style.Icon
- Load TileJSON sources via XMLHttpRequest by default
- Add new ol.geom.LineString#getCoordinateAt function
- Simplify meters per unit handling
- Use ESLint as a replacement for gjslint.py and jshint
Upgrade notes
proj4js integration
Before this release, OpenLayers depended on the global proj4 namespace. When using a module loader like Browserify, you might not want to depend on the global proj4 namespace. You can use the ol.proj.setProj4 function to set the proj4 function object. For example in a browserify ES6 environment:
import ol from 'openlayers';
import proj4 from 'proj4';
ol.proj.setProj4(proj4);
ol.source.TileJSON changes
The ol.source.TileJSON now uses XMLHttpRequest to load the TileJSON instead of JSONP with callback.
When using server without proper CORS support, jsonp: true option can be passed to the constructor to get the same behavior as before:
new ol.source.TileJSON({
url: 'http://serverwithoutcors.com/tilejson.json',
jsonp: true
})
Also for Mapbox v3, make sure you use urls ending with .json (which are able to handle both XMLHttpRequest and JSONP) instead of .jsonp.
Full list of changes
- #4694 - Fix eslint errors in wms-time example (@fredj)
- #4527 - Add support for smooth TileWMS dimensions (@bartvde)
- #4691 - Updated Bing Maps key. (@tschaub)
- #4673 - Respect fixed tile url functions when setting url(s) (@ahocevar)
- #4689 - Revert "Do not render in handleDownEvent" (@openlayers)
- #4688 - Give map a focus-outline in accessible-example (@marcjansen)
- #4642 - Move the icon style color to its own example (@alexbrault)
- #4685 - Remove bin/check-whitespace.py (@fredj)
- #4684 - Update eslint-config-openlayers to version 3.0.0 🚀 (@openlayers)
- #4677 - Make pixel projection handling work in compiled mode (@ahocevar)
- #4639 - Remove use of goog.bind and use ES5 .bind. (@nicholas-l)
- #4655 - Update browserify to version 13.0.0 🚀 (@openlayers)
- #4666 - Add a 'boxdrag' event to ol.interaction.DragBox. Resolves #4563 . (@WeaveTeam)
- #4669 - Remove reference to Closure Linter in CONTRIBUTING.md (@fredj)
- #4665 - Update istanbul to version 0.4.2 🚀 (@openlayers)
- #4663 - Update glob to version 6.0.4 🚀 (@openlayers)
- #4667 - Fix rendering of transparent MapQuest layer type (@klokantech)
- #4661 - Fixes #4654 Developer Documentation Updated (@gaf-ag)
- #4658 - Update jquery to version 2.2.0 🚀 (@openlayers)
- #4659 - Make sure icons show up in Safari (@bartvde)
- #4652 - Use map.getTargetElement instead of map.getTarget (@fredj)
- #4649 - Missing parameter description for ol.source.Tile#getOpaque (@klokantech)
- #4602 - Use ESLint. (@tschaub)
- #4628 - Fix for reprojecting opaque tile sources (@klokantech)
- #4618 - Update resemblejs to version 2.1.0 🚀 (@openlayers)
- #4647 - Proper rounding for possibly negative numbers (@ahocevar)
- #4641 - Remove extra options from icon example. (@tschaub)
- #4629 - Simplify scaleline calculation (@ahocevar)
- #4457 - Add color option to ol.style.Icon (@alexbrault)
- #4638 - Do not rely on projection extent (@ahocevar)
- #4635 - Update async to version 1.5.2 🚀 (@openlayers)
- #4581 - Do not render in handleDownEvent (@ahocevar)
- #4541 - Add new ol.geom.LineString#getCoordinateAt function (@fredj)
- #4489 - Update phantomjs to version 1.9.19 🚀 (@openlayers)
- #4625 - Use XHR by default to load TileJSON in ol.source.TileJSON (@klokantech)
- #4622 - Update fs-extra to version 0.26.4 🚀 (@openlayers)
- #4630 - Simplify meters per unit handling (@ahocevar)
- #4490 - Update istanbul to version 0.4.1 🚀 (@openlayers)
- #4574 - Added boxEndCondition to DragBoxOptions to replace the hardcoded chec… (@WeaveTeam)
- #4553 - Update mustache to version 2.2.1 🚀 (@openlayers)
- #4626 - Fixed documentation error (@simonseyock)
- #4606 - Include originating MapBrowserEvent in ol.DragBoxEvent (@fredj)
- #4614 - Remove checksum interface. (@tschaub)
- #4613 - Include own layer in layerFilter and only select unselected features (@ahocevar)
- #4612 - Set oli.source.VectorEvent#feature to ol.Feature|undefined (@fredj)
- #4620 - Fix olx.format.PolylineOptions#factor type (@fredj)
- #4621 - Fix olx.format.GPXOptions#readExtensions type (@fredj)
- #4619 - Add option to load TileJSON via XHR (@klokantech)
- #4617 - Add missing return type to GeoJSON format (@gberaudo)
- #4615 - Adjust copyright to include 2016 (@marcjansen)
- #4616 - Update closure-util to version 1.10.0 🚀 (@openlayers)
- #4596 - Use consistent tile coordinate keys (@ahocevar)
- #4609 - Add ol.proj.setProj4 function (@bartvde)
- #4603 - Update async to version 1.5.1 🚀 (@openlayers)
- #4604 - Update clean-css to version 3.4.9 🚀 (@openlayers)
- #4600 - Update glob to version 6.0.3 🚀 (@openlayers)
- #4595 - Pass 'opaque' option on to superclass (@ahocevar)
- #4598 - Make ol.source.Tile#getTilePixelRatio work correctly for all sources (@klokantech)
- #4594 - Fix for TileQueue gradually choking up when using raster reprojection (@klokantech)
- #4557 - Conditionally render tiles to a separate tile canvas (@ahocevar)
- #4580 - Update fs-extra to version 0.26.3 🚀 (@openlayers)
- #4579 - Release v3.12.1 (@openlayers)
- #4578 - Fix apidoc landing page markup (@ahocevar)
- #4575 - Update rbush to version 1.4.2 🚀 (@openlayers)
- #4571 - Correct typedef of selectinteraction options obj (@marcjansen)
- #4570 - Rename defaultSort to numberSafeCompareFunction on ol.array (@bartvde)
- #4567 - Always pass on a compare function to sort (@bartvde)
- #4001 - Export PDF's using jsPDF (@bartvde)