Add devicePixelRatio option to ol.Map constructor

This commit is contained in:
Frederic Junod
2013-12-12 14:21:27 +01:00
committed by Tom Payne
parent 8ddd56fdfb
commit 01a246ca72
2 changed files with 10 additions and 0 deletions

View File

@@ -157,6 +157,13 @@ ol.Map = function(options) {
var optionsInternal = ol.Map.createOptionsInternal(options);
/**
* @private
* @type {number}
*/
this.devicePixelRatio_ = goog.isDef(options.devicePixelRatio) ?
options.devicePixelRatio : ol.BrowserFeature.DEVICE_PIXEL_RATIO;
/**
* @private
* @type {goog.async.AnimationDelay}