fix for #660 -- feature.vector.attributes now correctly instantiated.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3066 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -27,10 +27,10 @@ OpenLayers.Feature.Vector.prototype =
|
|||||||
/** @type OpenLayers.Geometry */
|
/** @type OpenLayers.Geometry */
|
||||||
geometry:null,
|
geometry:null,
|
||||||
|
|
||||||
/** @type array */
|
/** @type Object */
|
||||||
attributes: {},
|
attributes: null,
|
||||||
|
|
||||||
/** @type strinng */
|
/** @type String */
|
||||||
state: null,
|
state: null,
|
||||||
|
|
||||||
/** @type Object */
|
/** @type Object */
|
||||||
@@ -48,9 +48,10 @@ OpenLayers.Feature.Vector.prototype =
|
|||||||
this.lonlat = null;
|
this.lonlat = null;
|
||||||
this.geometry = geometry;
|
this.geometry = geometry;
|
||||||
this.state = null;
|
this.state = null;
|
||||||
|
this.attributes = new Object();
|
||||||
if (data) {
|
if (data) {
|
||||||
OpenLayers.Util.extend(this.attributes, data);
|
this.attributes = OpenLayers.Util.extend(this.attributes, data);
|
||||||
}
|
}
|
||||||
this.style = style ? style : null;
|
this.style = style ? style : null;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user