give a feature a default, blank data
git-svn-id: http://svn.openlayers.org/trunk/openlayers@437 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -39,7 +39,7 @@ OpenLayers.Feature.prototype= {
|
|||||||
initialize: function(layer, lonlat, data, id) {
|
initialize: function(layer, lonlat, data, id) {
|
||||||
this.layer = layer;
|
this.layer = layer;
|
||||||
this.lonlat = lonlat;
|
this.lonlat = lonlat;
|
||||||
this.data = data;
|
this.data = (data != null) ? data : new Object();
|
||||||
this.id = (id ? id : 'f'+Math.random());
|
this.id = (id ? id : 'f'+Math.random());
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user