The 3.1.0 release includes 70 merged pull requests since 3.1.0. Of note, the KML format now parses NetworkingLink
tags. The measure example was reworked to display measurements and help messages while drawing. A WMTS GetCapabilities format was added. The WebGL renderer now supports feature hit detection (on point features). And you can now detect features/colored pixels on image and tile layers! See the full list of changes below.
The 3.2.0 release maintains a backwards-compatible API with the 3.1.0 release, so upgrades should be painless. Some special considerations below.
-
You should not call
view.setRotation
withundefined
, to reset the view rotation to0
then useview.setRotation(0)
(see #3176). -
If you use
$(map.getViewport()).on('mousemove')
to detect features when the mouse is hovered on the map, you should now rely on thepointermove
map event type and check in thepointermove
listener that thedragging
event property isfalse
(see #3190).
- #3171 - KML: Parsing of NetworkLink tag (@oterral)
- #3209 - Coding style fixes (@fredj)
- #3208 - Add setters and getters for imageLoadFunction (@bartvde)
- #3019 - Add option to allow Select interaction logic to select overlapping features (@bjornharrtell)
- #3206 - Add tooltip to show measure + help message while drawing (@pgiraud)
- #3205 - Use ol.extent.createOrUpdateFromCoordinate (@fredj)
- #3026 - Add support of reading WMTS Get Cap document (@htulipe)
- #3201 - Pass on opt_fast to parent clear function in ol.source.ServerVector (r=@elemoine,@gberaudo) (@bartvde)
- #3199 - Minor jsdoc fixes (@fredj)
- #3059 - Cache the buffered extent value (@fredj)
- #3196 - Remove unnecessary newlines (@fredj)
- #3099 - Fix up parsing of OGR GML with ol.format.GML (@bartvde)
- #3195 - Coding style (@fredj)
- #3192 - Add "url" option to ol.source.MapQuest (@elemoine)
- #3172 - Introduce forEachLayerAtPixel (@tsauerwein)
- #3178 - GeoJSON externs fixes (@fredj)
- #3179 - Disallow undefined values for ol.layer.Base (@fredj)
- #3161 - Doc fix. writeFeaturesNode receives an array of Feature (@3x0dv5)
- #3169 - Fix default icon style in kml format (@oterral)
- #3190 - Introduce
dragging
flag for MapBrowserEvent (@tsauerwein) - #3135 - Make changing the label of ZoomToExtent/FullScreen control consistent (@tsauerwein)
- #3186 - Take the pixel ratio into account when clipping the layer (@fredj)
- #3183 - Allow other params than 'mode' in example page query string. (@htulipe)
- #2791 - Re enable rotation button transition (@fredj)
- #3180 - Add a getMap function to ol.FeatureOverlay (r=@ahocevar) (@bartvde)
- #3176 - Disallowed undefined rotation value (@fredj)
- #3177 - Add example showing how to style polygon vertices (@tsauerwein)
- #3174 - Use view.getRotation or view.getResolution instead of view.getState (@fredj)
- #3170 - Coding style (@fredj)
- #3108 - Support skipping features in the WebGL renderer (@tsauerwein)
- #3163 - Use the layerStatesArray property from the frameState (@fredj)
- #3159 - Don't pass specific options to the parent constructor (@fredj)
- #3066 - Introduce hasFeatureAtPixel (@tsauerwein)
- #3065 - Add hit-detection support for WebGL (@tsauerwein)
- #3128 - Allow rendering of feature when download of icon failed (@oterral)
- #3156 - Move readProjectionFrom* functions to the base classes (@fredj)
- #3107 - Also listen on loading images (@elemoine)
- #3153 - Add missing GeoJSONFeature#bbox property (@fredj)
- #3154 - Remove unnecessary newlines (@fredj)
- #3146 - Enable tests for ol.geom.flat.reverse (@icholy)
- #3152 - Update closure-library and closure-util version (@fredj)
- #3145 - Add wrapX option to source.OSM and source.BingMaps (@elemoine)
- #3139 - Add ol.control.Control#setTarget (@elemoine)
- #3144 - Update CONTRIBUTING style guide with recent guidelines (@bartvde)
- #3136 - Use array.length = 0 instead of goog.array.clear (@fredj)
- #3140 - Avoid use of goog.array.clone with arrays. (@tschaub)
- #3122 - Revert "Use offsetX and offsetY if available" (@fredj)
- #2385 - Option to update vector layers while animating (@ahocevar)
- #3129 - Only update the rbush item if the extent has changed (@fredj)
- #3117 - Add pixelRatio support for DOM vector renderer (@ahocevar)
- #3124 - Add a space between scale -value and -unit (@sirtet)
- #3130 - Document default value (@fredj)
- #3105 - ol.geom.Geometry#getExtent re-factoring (@fredj)
- #3118 - Bugfix: "Cannot read property 'firstElementChild' of null" (WFS) (@naturalatlas)
- #3114 - Specify node version in CONTRIBUTING.md (@elemoine)
- #3106 - Don't pass specific options to the parent constructor (@fredj)
- #3110 - Use svg instead of png to get better image quality (@PeterDaveHello)
- #2707 - Generate source map of minified ol.js (@gberaudo)
- #3104 - Don't pass renderBuffer option to the parent constructor (@fredj)
- #3096 - popup example cleanup / simplification (@fredj)
- #3072 - Optimize canvas hit detection by rendering features in a limited extent. (@tschaub)
- #3101 - Use bracket notation instead of goog.object functions. (@tschaub)
- #3079 - Exclude source files from docs. (@tschaub)
- #3100 - Assert that ol.layer.Tile#getPreload is always set (@fredj)
- #3084 - Changes from the v3.1.x branch. (@openlayers)
- #3094 - Remove AUTHORS.md. (@tschaub)
- #3089 - Fixed URL link for test README (@mike-mcgann)
- #2894 - Simplify CSS code in custom-controls example (@fredj)
- #3085 - Fixed documentation typo for return value of ol.proj.Projection.isGlobal(). (@mike-mcgann)
- #3073 - Make map's deviceOptions map options (@ahocevar)