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:
crschmidt
2006-05-17 17:25:27 +00:00
parent 4d0f98f4fe
commit 04ca5d3695

View File

@@ -10,5 +10,10 @@ OpenLayers.Icon.prototype = {
initialize: function(url, size) {
this.size = size;
this.url = url;
},
// Create a copy of this icon.
clone: function() {
return new OpenLayers.icon(this.size, this.url);
}
}