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

View File

@@ -242,10 +242,14 @@ ol.source.Tile.prototype.getTileCacheForProjection = function(projection) {
/**
* @param {number} pixelRatio Pixel ratio.
* Get the tile pixel ratio for this source. Subclasses may override this
* method, which is meant to return a supported pixel ratio that matches the
* provided `opt_pixelRatio` as close as possible. When no `opt_pixelRatio` is
* provided, it is meant to return `this.tilePixelRatio_`.
* @param {number=} opt_pixelRatio Pixel ratio.
* @return {number} Tile pixel ratio.
*/
ol.source.Tile.prototype.getTilePixelRatio = function(pixelRatio) {
ol.source.Tile.prototype.getTilePixelRatio = function(opt_pixelRatio) {
return this.tilePixelRatio_;
};