Use ol.source.Tile#getTileGridForProjection
This commit is contained in:
@@ -172,10 +172,7 @@ ol.renderer.canvas.TileLayer.prototype.prepareFrame =
|
||||
goog.asserts.assertInstanceof(tileLayer, ol.layer.Tile);
|
||||
var tileSource = tileLayer.getSource();
|
||||
goog.asserts.assertInstanceof(tileSource, ol.source.Tile);
|
||||
var tileGrid = tileSource.getTileGrid();
|
||||
if (goog.isNull(tileGrid)) {
|
||||
tileGrid = ol.tilegrid.getForProjection(projection);
|
||||
}
|
||||
var tileGrid = tileSource.getTileGridForProjection(projection);
|
||||
var tileGutter = tileSource.getGutter();
|
||||
var z = tileGrid.getZForResolution(view2DState.resolution);
|
||||
var tileSize = tileGrid.getTileSize(z);
|
||||
|
||||
Reference in New Issue
Block a user