numLevelsForResolution

fun numLevelsForResolution(radiansPerPixel: Double): Int

Returns the number of levels necessary to achieve the specified resolution. The result is correct for this configuration's current firstLevelDelta, tileWidth and tileHeight, and is invalid if any of these values change.

Return

the number of levels

Parameters

radiansPerPixel

the desired resolution in radians per pixel

Throws

If the resolution is not positive