Remove the tilePixelRatio option from ol.source.VectorTile

This commit is contained in:
Andreas Hocevar
2017-08-02 23:57:29 +02:00
parent b3be7e7ba9
commit d4d371a4c2
8 changed files with 32 additions and 32 deletions
+2 -5
View File
@@ -40,7 +40,6 @@ ol.source.VectorTile = function(options) {
tileLoadFunction: options.tileLoadFunction ?
options.tileLoadFunction : ol.VectorImageTile.defaultLoadFunction,
tileUrlFunction: options.tileUrlFunction,
tilePixelRatio: options.tilePixelRatio,
url: options.url,
urls: options.urls,
wrapX: options.wrapX === undefined ? true : options.wrapX
@@ -141,10 +140,8 @@ ol.source.VectorTile.prototype.getTileGridForProjection = function(projection) {
/**
* @inheritDoc
*/
ol.source.VectorTile.prototype.getTilePixelRatio = function(opt_pixelRatio) {
return opt_pixelRatio == undefined ?
ol.source.UrlTile.prototype.getTilePixelRatio.call(this, opt_pixelRatio) :
opt_pixelRatio;
ol.source.VectorTile.prototype.getTilePixelRatio = function(pixelRatio) {
return pixelRatio;
};