# setMaxTileSize

public void setMaxTileSize(int maxPixels)

By default the View automatically calculates the optimal tile size. Set this to override this, and force an upper limit to the dimensions of the generated tiles. Passing TILE_SIZE_AUTO will re-enable the default behaviour.

#### Parameters

maxPixels

Maximum tile size X and Y in pixels.

public void setMaxTileSize(int maxPixelsX, int maxPixelsY)

By default the View automatically calculates the optimal tile size. Set this to override this, and force an upper limit to the dimensions of the generated tiles. Passing TILE_SIZE_AUTO will re-enable the default behaviour.

#### Parameters

maxPixelsX

Maximum tile width.

maxPixelsY

Maximum tile height.