google-panorama-zoom-level
Find the best zoom level for StreetView panoramas based on the specified maximum texture dimension. This is useful to avoid WebGL texture limits on low-end hardware.
Example:
var level = // -> 3 // -> 2
A typical usage with WebGL capabilities:
var level = var gl = var maxSize = glvar zoom =
Usage
zoom = level(maxSize)
Returns the best zoom level for the given maxSize
texture dimension. A stitched StreetView panoramic image at that zoom level will be equal or less than maxSize
.
See Also
- google-panorama-by-tiles
- google-panorama-by-id
- google-panorama-by-location
- google-panorama-equirectangular
License
MIT, see LICENSE.md for details.