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 = 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;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user