Make ratio configurable in WMS single image
This commit is contained in:
committed by
Éric Lemoine
parent
38f1af6204
commit
8532bc5a4d
@@ -122,6 +122,7 @@
|
|||||||
@exportObjectLiteralProperty ol.source.SingleImageWMSOptions.extent ol.Extent|undefined
|
@exportObjectLiteralProperty ol.source.SingleImageWMSOptions.extent ol.Extent|undefined
|
||||||
@exportObjectLiteralProperty ol.source.SingleImageWMSOptions.params Object.<string,*>
|
@exportObjectLiteralProperty ol.source.SingleImageWMSOptions.params Object.<string,*>
|
||||||
@exportObjectLiteralProperty ol.source.SingleImageWMSOptions.projection ol.ProjectionLike
|
@exportObjectLiteralProperty ol.source.SingleImageWMSOptions.projection ol.ProjectionLike
|
||||||
|
@exportObjectLiteralProperty ol.source.SingleImageWMSOptions.ratio number|undefined
|
||||||
@exportObjectLiteralProperty ol.source.SingleImageWMSOptions.resolutions Array.<number>|undefined
|
@exportObjectLiteralProperty ol.source.SingleImageWMSOptions.resolutions Array.<number>|undefined
|
||||||
@exportObjectLiteralProperty ol.source.SingleImageWMSOptions.url string|undefined
|
@exportObjectLiteralProperty ol.source.SingleImageWMSOptions.url string|undefined
|
||||||
|
|
||||||
|
|||||||
@@ -34,11 +34,11 @@ ol.source.SingleImageWMS = function(options) {
|
|||||||
this.image_ = null;
|
this.image_ = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FIXME configurable?
|
|
||||||
* @private
|
* @private
|
||||||
* @type {number}
|
* @type {number}
|
||||||
*/
|
*/
|
||||||
this.ratio_ = 1.5;
|
this.ratio_ = goog.isDef(options.ratio) ?
|
||||||
|
options.ratio : 1.5;
|
||||||
|
|
||||||
};
|
};
|
||||||
goog.inherits(ol.source.SingleImageWMS, ol.source.ImageSource);
|
goog.inherits(ol.source.SingleImageWMS, ol.source.ImageSource);
|
||||||
|
|||||||
Reference in New Issue
Block a user