| Version 16 (modified by euzuro, 5 years ago) |
|---|
OpenLayers 2.7 Release Notes
As of 2.7-RC1, the OpenLayers 2.7 release closes 183 outstanding tickets.
Included in this release are ... More new features and fixes are listed below.
- Release wiki: Release/2.7
- Milestone: 2.7 Release
- Resolved Tickets
New features
- New XMLHTTPRequest interface: OpenLayers.Request makes doing all the AJAX calls (GET,POST,PUT,DELETE,OPTIONS,HEAD) simpler and more intuitive. See Request for detailed information. (r7335 / #1565)
- Class-management functions added to OpenLayers.Element class: hasClass(), addClass(), removeClass(), and toggleClass() all make it easier for users to manage/manipulate the css classes attributed to DOMElements. (r7579 / #1607)
- ZoomPanel and PanPanel controls: Essentially these are new css-ified versions of the PanZoom control, making it infinitely easier for users to add their own, customized panning and zooming controls (#1400)
- Keyboard handler works in Safari (#1292)
- NavigationHistory control now uses css sprites technique for rendering (#1555)
- Added a 'beforefeatureselected' event to the vector layer (#1427)
- Overview map now supports different projections. (#1620)
- Events:
- Feature.Vector:
- Added move() APIMethod to the Feature.Vector class to easily allow for the displacement of vector features. (#1362)
- Format:
- New! Format.GPX class allows for parsing of GPX-formatted files into linear features. (#1272)
- Format.GML:
- Format.SLD:
- Format.WMC:
- Languages:
- Added a 'moveend' event to the Layer's events list. (#1678)
- Added 'alwaysInRange' property to allow layers to never turn off based on the zoom level. See below for change from 2.6 that this implies.(#987)
- adding 'olMap' css class name with default 0px padding and margin to ensure proper behaviour. See below for change from 2.6 that this implies. (#1179)
- Layer.GeoRSS now stores the title and description attributes on the created OpenLayers.Feature object for later access by applications. (#1485)
Bugs Fixed
- No more duplicate DOMElement id's for controls. All controls' divs' ids are set according to their control id's (#1396). Also, those control id's can now have a custom id specified in the 'options' parameter (#1687).
- Cursor is 'move' instead of 'default' when dragging a feature. (#1637)
- Modify feature control now silently removes features/vertices. (#1562)
- Fix linestring editing when two points are at the same position. (#1533)
- register() method no longer failing on OpenLayers.Events object if Array.prototype is overloaded by 3rd party library. (#1502)
- Vector features with no geometries are now cloneable. (#1557)
- Format:
- Format.GeoJSON now parses features with null geometries. (#1145)
- Format.GeoRSS :
- Format.SLD: PointSymbolizer Size is no longer misinterpreted. (#1545)
- Format.WKT: No longer reprojects geometrycollection components twice. (#1554)
- Format.XML: No longer depend on exceptions for parsing. 3x speed up of parsing in FF. (#1642)
- Format.KML: KML styles no longer extracted when extractStyles is false. (#1576)
- Clear bounds of geometries when reprojecting. (#1658)
- Handler:
- 'minScale' and 'maxScale' properties no longer ignored if 'scales' array set on map. (#1199)
- Layers subclassing FixedZoomLevels (Google, Yahoo, VE, etc) now take into account the 'maxZoomLevel' property. (#1182)
- Layer.GeoRSS no longer triggers 'loadstart' twice. (#1580)
Changes to existing applications from previous versions
- The OpenLayers.Events object no longer automatically includes the 'xy' property on all browser events. This is from (r7615 / #1459) and if it is causing you issues, you can override it by adding the following line to your code:
OpenLayers.Events.prototype.includeXY = true;
- On the SelectFeature control hover can no longer be set on the SelectFeature control after the control has been initialized: must be passed at initialize time. (r7682 / #1655)
- Overlays with no scale/resolution properties set are now visible at all resolution levels (r/#)
- Map divs which previously had a 'padding' or 'margin' css property set... those properties are now overridden by style.css (#1179)
