give Feature an id
git-svn-id: http://svn.openlayers.org/trunk/openlayers@294 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user