add inflate() function on marker
git-svn-id: http://svn.openlayers.org/trunk/openlayers@466 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -50,6 +50,17 @@ OpenLayers.Marker.prototype = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @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 */
|
/** @final @type String */
|
||||||
CLASS_NAME: "OpenLayers.Marker"
|
CLASS_NAME: "OpenLayers.Marker"
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user