Reducing number of default zoom levels

To avoid issues with long segments, we accept scaled tiles for
now. Further workarounds and browser tickets reporting our
issues are needed.
This commit is contained in:
ahocevar
2013-06-11 21:06:18 +02:00
parent 489459f313
commit ea02626c28

View File

@@ -309,7 +309,7 @@ ol.renderer.canvas.VectorLayer.prototype.renderFrame =
// lazy tile grid creation to match the view projection
tileGrid = ol.tilegrid.createForProjection(
view2DState.projection,
22, // should be no harm in going big here - ideally, it would be ∞
20, // should be no harm in going big here - ideally, it would be ∞
[512, 512]);
this.tileGrid_ = tileGrid;
}