when cloning an icon, set the calculateOffset() function too, if it exists.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@877 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -53,7 +53,10 @@ OpenLayers.Icon.prototype = {
|
|||||||
* @type OpenLayers.Icon
|
* @type OpenLayers.Icon
|
||||||
*/
|
*/
|
||||||
clone: function() {
|
clone: function() {
|
||||||
return new OpenLayers.Icon(this.url, this.size, this.offset);
|
return new OpenLayers.Icon(this.url,
|
||||||
|
this.size,
|
||||||
|
this.offset,
|
||||||
|
this.calculateOffset);
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user