Add devicePixelRatio option to ol.Map constructor

This commit is contained in:
Frederic Junod authored and Tom Payne committed 2013-12-16 12:15:00 +01:00
1 parent 8ddd56fdfb
commit 01a246ca72
2 files changed
+10

No files matched your search

+7
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}