From 39e53685ce7887f8f41c0f3345738aacf64c3a66 Mon Sep 17 00:00:00 2001 From: euzuro Date: Tue, 23 May 2006 19:01:55 +0000 Subject: [PATCH] give Feature an id git-svn-id: http://svn.openlayers.org/trunk/openlayers@294 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Feature.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/OpenLayers/Feature.js b/lib/OpenLayers/Feature.js index d7119761da..f989696e0b 100644 --- a/lib/OpenLayers/Feature.js +++ b/lib/OpenLayers/Feature.js @@ -1,16 +1,23 @@ +/** + * @class + */ OpenLayers.Feature = Class.create(); OpenLayers.Feature.prototype= { // events object events:null, + /** @type String */ + id: null, + // ol.LonLat lonlat:null, // Object data:null, - initialize: function(lonlat, data) { + initialize: function(id, lonlat, data) { + this.id = id; this.lonlat = lonlat; this.data = data; },