Release/2.7/Notes

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.

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:
    • Right-clicks (and double right-clicks -- zoom out) can now be configured on the map by setting the 'handleRightClicks' property on the Navigation control. (#1359)
    • Dramatic speed improvements to getMousePosition() (#1459)
  • 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:
      • GML Parsing now supports gml-specific attributes. (#1328)
      • Adding support to the GML parser for serializing OpenLayers.Bounds as gml:Box. This gives the filter format (and the SLD format) the ability to write spatial filters (that have bounds as a value). (#1543)
    • Format.SLD:
      • Users can now specify stroke style of features. (#1126)
      • Added a filter format for version 1.0.0 filter encoding. (#1605)
      • Added support for TextSymbolizer. (#1542)
    • Format.WMC:
      • Implemented 'queryable' functionality. (#1447)
      • Now reads metadata URLs. (#1452)
  • 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 :
      • No longer fails on large line/poly nodes in FF. (#1614)
      • Speedup for getChildValue(). (#1600)
    • 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:
    • Handler.Box:
      • Take css borders into account when drawing the box. (#1593)
      • always set style.left and style.top, so lost events won't result in an incorrect box any more. (#1579)
    • Handler.RegularPolygon: New RegularPolygon features can now be invisible. (#1577)
    • Handler.Feature: No longer uses getFeatureFromEvent on mousemove without hover callbacks. See below for change from 2.6 that this implies. (#1655)
  • '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)