14 KiB
4.1.0
Summary
The v4.1.0 release includes features and fixes from 91 pull requests.
Interactive overview map
The extent rectangle on the overview map can now be dragged to control the view for the main map.
Setting min and max zoom for a view
You can now change the min or max zoom for a view after it has been created. This can be useful if you want to limit how far out users can zoom based on changes in viewport width (use view.setMinZoom() for this).
Adding duplicate layers to a map throws
Previously, you could do this:
map.addLayer(layer);
map.addLayer(layer);
However, after adding a duplicate layer, things failed if you tried to remove that layer.
Now, map.addLayer() throws if you try adding a layer that has already been added to the map.
Simpler constrainResolution configuration
The constrainResolution configuration for ol.interaction.PinchZoom and ol.interaction.MouseWheelZoom
can now be set directly with an option in ol.interaction.defaults:
ol.interaction.defaults({
constrainResolution: true
});
Detailed changes
- #6675 - Reset cursor when translate interaction is removed or deactivated (@tchandelle)
- #6707 - Set version when building ol package (@tschaub)
- #6706 - Add ol.source.Cluster#getDistance function (@fredj)
- #6695 - Unique layers (@tschaub)
- #6704 - Include typedefs.js in closure compiler tutorial build configurations (@openlayers)
- #6702 - Update clean-css-cli to the latest version 🚀 (@openlayers)
- #6693 - Update clean-css-cli to the latest version 🚀 (@openlayers)
- #6691 - Move eslint globals to to test/.eslintrc (@fredj)
- #6689 - Add new constrainResolution option to olx.interaction.DefaultsOptions (@fredj)
- #6692 - Improve docs for MouseWheelZoom constrainResolution (@ahocevar)
- #6687 - Clip image only if the layer extent intersects the view extent (@tchandelle)
- #6686 - Update finishCoordinate in ol.interaction.Draw#removeLastPoint (@fredj)
- #6682 - Add example, docs and typedef for MouseWheelZoom's constrainResolution option (@ahocevar)
- #6683 - Add this jsdoc tag to ol.interaction.DragBox.defaultBoxEndCondition (@fredj)
- #6681 - Add constrainResolution in olx.interaction.PinchZoomOptions typedef (@fredj)
- #6671 - Add constraintResolution option to MouseWheelZoom for zoom with trackpad (@kaiCu)
- #6680 - Remove ol.DRAG_BOX_HYSTERESIS_PIXELS define and add option (@fredj)
- #6666 - Use the optional extent in ol.structs.RBush#getExtent (@fredj)
- #6670 - fix(package): update browserify to version 14.3.0 (@openlayers)
- #6664 - Update async to the latest version 🚀 (@openlayers)
- #6659 - Add crossOrigin to examples using ol.style.Icon (@openlayers)
- #6658 - Fixes for raster source rendering (@tschaub)
- #6620 - Fix the parsing of flat coordinates in GML2 for 3D geometies (@Jenselme)
- #6657 - Update coveralls to the latest version 🚀 (@openlayers)
- #6644 - Allow minZoom and maxZoom to be set on a view (@tschaub)
- #6636 - Add test for the metric unit displayed in the scaleline (@fredj)
- #6598 - Add support of micrometers to scaleline (@hajjimurad)
- #6643 - Add common transforms by default (@tschaub)
- #6567 - Overlay visible before updating render position (@nagytech)
- #6634 - Fix custom build when openlayers is installed from yarn package manager (@Toilal)
- #6639 - Update async to the latest version 🚀 (@openlayers)
- #6635 - Add missing externs to custom builds examples (@Toilal)
- #6631 - Fix request image size caclulation (@ahocevar)
- #6627 - Change css selector for user-select none (@bartvde)
- #6626 - Respect cacheSize for reprojected caches (@ahocevar)
- #6623 - Fix outerWidth and outerHeight calculation in IE (@ahocevar)
- #6625 - Update clean-css-cli to the latest version 🚀 (@openlayers)
- #6622 - Fix proj4 type (@gberaudo)
- #6617 - Use GeoServer/GWC caching when possible (@ahocevar)
- #6614 - Filter write util method (@adube)
- #6616 - Fix closing tag in gml tests (@fredj)
- #6612 - Add support for WFS 1.0.0 to ol.format.WFS#writeTransaction (@Jenselme)
- #5887 - Interactive overview map (@felixveysseyre)
- #6610 - Fix event type case of MSPointerDown (@ahocevar)
- #6611 - Update jquery to the latest version 🚀 (@openlayers)
- #6609 - Update sinon to the latest version 🚀 (@openlayers)
- #6606 - Reset dragSegments after vertex deletion (@ahocevar)
- #6523 - Add Gml2 serializers to support WFS-T 1.0.0 (@Jenselme)
- #6579 - Update slimerjs to v0.10.3 (@fredj)
- #6577 - Adding crossOrigin to optionsFromCapabilities (@fredj)
- #6604 - Fix RegularShape documentation (@ahocevar)
- #6603 - Update eslint to the latest version 🚀 (@openlayers)
- #6601 - Update jquery to the latest version 🚀 (@openlayers)
- #6600 - Update fs-extra to the latest version 🚀 (@openlayers)
- #6578 - Add ol.RenderOrderFunction typedef (@icholy)
- #6589 - Update sinon to the latest version 🚀 (@openlayers)
- #6592 - Update clean-css-cli to the latest version 🚀 (@openlayers)
- #6594 - Update fs-extra to the latest version 🚀 (@openlayers)
- #6580 - Remove unused esprima package (@fredj)
- #6570 - Don't use deprecated sinon.stub(obj, 'meth', fn) (@openlayers)
- #6569 - Return null if the layer was not found in the WMTS capabilities (@fredj)
- #6551 - Use the default fill and stroke color (@fredj)
- #6560 - Don’t crash if feature loader xhr response returns 500 (@geosense)
- #6559 - Remove unneeded type cast (@fredj)
- #6558 - Update coveralls to the latest version 🚀 (@openlayers)
- #6553 - Update proj4 to the latest version 🚀 (@openlayers)
- #6554 - Update eslint to the latest version 🚀 (@openlayers)
- #6549 - Make getAnimating and cancelAnimations @api (@bartvde)
- #6547 - Clean up left-over code from animation changes (@bartvde)
- #6540 - More precise ol.Geolocation#getAccuracyGeometry return type (@openlayers)
- #6539 - Update sinon to the latest version 🚀 (@openlayers)
- #6535 - Update closure-util to the latest version 🚀 (@openlayers)
- #6529 - Update clean-css-cli to the latest version 🚀 (@openlayers)
- #6530 - Update eslint to the latest version 🚀 (@openlayers)
- #6515 - Add view methods for getting max zoom, min zoom, and any zoom for a resolution (@tschaub)
- #6520 - Update eslint to the latest version 🚀 (@openlayers)
- #6518 - Fix olx.style.IconOptions.prototype.src type (@fredj)
- #6513 - Update async to the latest version 🚀 (@openlayers)
- #6512 - Complete animations at target values (@tschaub)
- #6511 - Revert accidently committed example change (@ahocevar)
- #6507 - ol.DEBUG no longer needed in transforms/module.js (@probins)
- #6505 - Update ol package to include Browserify config (@tschaub)
- #6504 - Determine if we should handle the drawing while the pointer is moving (@tchandelle)
- #6499 - Be more tolerant when comparing vertices when modifying a circle (@tchandelle)
- #6498 - Travis failing on master - use Node v6.1.x (@ahocevar)
- #6493 - Vector tile cleanup (@ahocevar)
- #6483 - Fix renderer.canvas.TileLayer to calculate correct canvas height for drawing. (@nearmap)
- #6488 - Do not draw circle when pointer not moved and freehand is on (@tchandelle)
- #6491 - Update clean-css-cli to the latest version 🚀 (@openlayers)