Changes between Version 4 and Version 5 of Release/2.6/Notes

Show
Ignore:
Timestamp:
01/27/08 05:45:58 (5 years ago)
Author:
crschmidt
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Release/2.6/Notes

    v4 v5  
     1The following behaviors have changed in a way that may affect applications. If you are using previous versions of OpenLayers, you are encouraged to read these sections carefully so as to understand how these issues may affect your application. 
     2 
    13 * The style of a selected feature, in the past, was treated as an explicit setting of all the properties of the style of the feature. In OpenLayers 2.6, the 'select' style is instead an *extension* of the existing style. This means that if you have a feature which is styled with an externalGraphic, and you select it, you will still see an externalGraphic unless you explicitly mark that property as an empty string, for example. This allows for features to change only some properties when selected: if you have a set of features with varying pointRadius style attributes, you can set your select style to 'strokeColor': 'red', and the feature will keep its current size, and only change stroke style. 
    24 * The GeoRSS and Text layer data loading has been refactored slightly. Instead of loading data on instantiation, this load now happens the first time that the layer is visible and moved (via the moveTo command). If you'd like to mimic the old behavior, you can call layer.loadRSS() or layer.loadText() immediately after creating the layer. However, it would be better to tie your functionality to a loadend event from the layer: this way, you can be notified when the data is actually loaded, since it happens asynchronously. In either case, in order to take advantage of reprojection support, you will need to first ensure that a map is set on the layer by adding the layer to a map.