From c99be320c8a51b69792a1ef52e34a69bab206a3a Mon Sep 17 00:00:00 2001 From: euzuro Date: Tue, 30 May 2006 10:09:51 +0000 Subject: [PATCH] add inflate() function on marker git-svn-id: http://svn.openlayers.org/trunk/openlayers@466 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Marker.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/OpenLayers/Marker.js b/lib/OpenLayers/Marker.js index a28ca5c1ec..fcf3b04e54 100644 --- a/lib/OpenLayers/Marker.js +++ b/lib/OpenLayers/Marker.js @@ -49,6 +49,17 @@ OpenLayers.Marker.prototype = { this.icon.moveTo(px); } }, + + /** + * @param {float} inflate + */ + 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); + } + }, /** @final @type String */ CLASS_NAME: "OpenLayers.Marker"