Use simple tile sizes for Bing maps by default
This commit is contained in:
@@ -107,7 +107,8 @@ ol.source.BingMaps.prototype.handleImageryMetadataResponse =
|
||||
extent: ol.tilegrid.extentFromProjection(sourceProjection),
|
||||
minZoom: resource.zoomMin,
|
||||
maxZoom: maxZoom,
|
||||
tileSize: [resource.imageWidth, resource.imageHeight]
|
||||
tileSize: resource.imageWidth == resource.imageHeight ?
|
||||
resource.imageWidth : [resource.imageWidth, resource.imageHeight]
|
||||
});
|
||||
this.tileGrid = tileGrid;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user