give Feature an id

git-svn-id: http://svn.openlayers.org/trunk/openlayers@294 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-05-23 19:01:55 +00:00
parent 16ac9ce885
commit 39e53685ce
+8 -1
View File
@@ -1,16 +1,23 @@
/**
* @class
*/
OpenLayers.Feature = Class.create(); OpenLayers.Feature = Class.create();
OpenLayers.Feature.prototype= { OpenLayers.Feature.prototype= {
// events object // events object
events:null, events:null,
/** @type String */
id: null,
// ol.LonLat // ol.LonLat
lonlat:null, lonlat:null,
// Object // Object
data:null, data:null,
initialize: function(lonlat, data) { initialize: function(id, lonlat, data) {
this.id = id;
this.lonlat = lonlat; this.lonlat = lonlat;
this.data = data; this.data = data;
}, },