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; },