Revert "Merge pull request #4344 from bartvde/issue-2844"

This reverts commit e5c44b37c9, reversing
changes made to 7f4c6e3634.
This commit is contained in:
Andreas Hocevar
2015-11-12 19:17:07 +01:00
parent bb5377fb8c
commit c5f4710b8d
13 changed files with 31 additions and 75 deletions

View File

@@ -24,9 +24,7 @@ ol.ImageState = {
* @constructor
* @extends {goog.events.EventTarget}
* @param {ol.Extent} extent Extent.
* @param {Array.<number>|undefined} resolution Resolution, first value
* is the resolution in the x direction, second value is the resolution
* in the y direction.
* @param {number|undefined} resolution Resolution.
* @param {number} pixelRatio Pixel ratio.
* @param {ol.ImageState} state State.
* @param {Array.<ol.Attribution>} attributions Attributions.
@@ -55,7 +53,7 @@ ol.ImageBase = function(extent, resolution, pixelRatio, state, attributions) {
/**
* @protected
* @type {Array.<number>|undefined}
* @type {number|undefined}
*/
this.resolution = resolution;
@@ -109,7 +107,7 @@ ol.ImageBase.prototype.getPixelRatio = function() {
/**
* @return {Array.<number>} Resolution.
* @return {number} Resolution.
*/
ol.ImageBase.prototype.getResolution = function() {
goog.asserts.assert(this.resolution !== undefined, 'resolution not yet set');