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

View File

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