Create a clone method for Icon.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@108 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -10,5 +10,10 @@ OpenLayers.Icon.prototype = {
|
|||||||
initialize: function(url, size) {
|
initialize: function(url, size) {
|
||||||
this.size = size;
|
this.size = size;
|
||||||
this.url = url;
|
this.url = url;
|
||||||
|
},
|
||||||
|
|
||||||
|
// Create a copy of this icon.
|
||||||
|
clone: function() {
|
||||||
|
return new OpenLayers.icon(this.size, this.url);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user