Make ratio configurable in WMS single image

This commit is contained in:
Cédric Moullet
2013-03-08 06:36:27 +01:00
committed by Éric Lemoine
parent 38f1af6204
commit 8532bc5a4d
2 changed files with 3 additions and 2 deletions

View File

@@ -34,11 +34,11 @@ ol.source.SingleImageWMS = function(options) {
this.image_ = null;
/**
* FIXME configurable?
* @private
* @type {number}
*/
this.ratio_ = 1.5;
this.ratio_ = goog.isDef(options.ratio) ?
options.ratio : 1.5;
};
goog.inherits(ol.source.SingleImageWMS, ol.source.ImageSource);