replace Size argument with simple object (icon.setSize)
This commit is contained in:
@@ -181,9 +181,10 @@ OpenLayers.Marker = OpenLayers.Class({
|
|||||||
*/
|
*/
|
||||||
inflate: function(inflate) {
|
inflate: function(inflate) {
|
||||||
if (this.icon) {
|
if (this.icon) {
|
||||||
var newSize = new OpenLayers.Size(this.icon.size.w * inflate,
|
this.icon.setSize({
|
||||||
this.icon.size.h * inflate);
|
w: this.icon.size.w * inflate,
|
||||||
this.icon.setSize(newSize);
|
h: this.icon.size.h * inflate
|
||||||
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user