Fix vector tile rotation on HiDPI devices

This commit is contained in:
Andreas Hocevar
2016-08-27 19:58:38 +02:00
parent fe6fe702b2
commit cb7c15c767
9 changed files with 52 additions and 11 deletions
+2 -1
View File
@@ -271,7 +271,8 @@ ol.source.TileWMS.prototype.getRequestUrl_ = function(tileCoord, tileSize, tileE
* @inheritDoc
*/
ol.source.TileWMS.prototype.getTilePixelRatio = function(pixelRatio) {
return (!this.hidpi_ || this.serverType_ === undefined) ? 1 : pixelRatio;
return (!this.hidpi_ || this.serverType_ === undefined) ? 1 :
/** @type {number} */ (pixelRatio);
};