replace Size argument with simple object (icon.setSize)

This commit is contained in:
fredj
2012-01-09 13:43:59 +01:00
committed by Frederic Junod
parent f199dd471e
commit 6abed6221f

View File

@@ -181,9 +181,10 @@ OpenLayers.Marker = OpenLayers.Class({
*/
inflate: function(inflate) {
if (this.icon) {
var newSize = new OpenLayers.Size(this.icon.size.w * inflate,
this.icon.size.h * inflate);
this.icon.setSize(newSize);
this.icon.setSize({
w: this.icon.size.w * inflate,
h: this.icon.size.h * inflate
});
}
},