git-svn-id: http://svn.openlayers.org/trunk/openlayers@108 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
20 lines
394 B
JavaScript
20 lines
394 B
JavaScript
OpenLayers.Icon = Class.create();
|
|
OpenLayers.Icon.prototype = {
|
|
|
|
// string: image url
|
|
url: null,
|
|
|
|
// {OpenLayers.Size}: size of image
|
|
size:null,
|
|
|
|
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);
|
|
}
|
|
}
|