* Remove default styling from the Feature.Vector class.

* Add a 'style' property to the layer.
 * When a feature is added to a layer, either uses the style on the 
   layer, or uses the default feature style.
 * Add test to Layer.Vector for this funcionality 
 * Adds a preFeatureInsert hook to change a feature *before* 
   drawing it.
 * Change openmnnd demo to include the use of preFeatureInsert
   and style attribute on layer.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@2949 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2007-04-01 12:08:13 +00:00
parent adee1fb217
commit 53977cf840
4 changed files with 68 additions and 6 deletions

View File

@@ -51,7 +51,7 @@ OpenLayers.Feature.Vector.prototype =
if (data) {
OpenLayers.Util.extend(this.attributes, data);
}
this.style = style ? style : OpenLayers.Util.extend({}, OpenLayers.Feature.Vector.style['default']);
this.style = style ? style : null;
},