levelForResolution

fun levelForResolution(resolution: Angle): Level

Returns the level that most closely approximates the specified resolution.

Return

the level for the specified resolution, or null if this level set is empty

Parameters

resolution

the desired resolution in angular value of latitude per pixel.

Throws

If the resolution is not positive

If this level set is empty