Computes the camera that shows exactly one tile on a square map.
Jump a map in MapMode.tile to the camera to render tile, where
logicalSize is the map's size. The camera centers the tile, zooms until the
tile fills the map, and looks straight down with north up and no padding. The
map keeps its camera within its zoom limits, so for a deep tile, raise the
maximum zoom past the camera's with MapHandle.setBounds().
Status.invalidArgument when logicalSize isn't square, or is wider than
512 pixels. For denser tiles, raise the map's scale factor instead.
Status.invalidArgument when tile.x or tile.y isn't less than 2 to the
power tile.z, or when the tile can't fill the map at a zoom from 0 to
25.5, as for tile 0/0/0 on a 256-pixel map.
Computes the camera that shows exactly one tile on a square map.
Jump a map in
MapMode.tileto the camera to rendertile, wherelogicalSizeis the map's size. The camera centers the tile, zooms until the tile fills the map, and looks straight down with north up and no padding. The map keeps its camera within its zoom limits, so for a deep tile, raise the maximum zoom past the camera's withMapHandle.setBounds().See
mln_camera_for_tilein the C API reference.Errors:
Status.invalidArgumentwhenlogicalSizeisn't square, or is wider than 512 pixels. For denser tiles, raise the map's scale factor instead.Status.invalidArgumentwhentile.xortile.yisn't less than 2 to the powertile.z, or when the tile can't fill the map at a zoom from 0 to 25.5, as for tile 0/0/0 on a 256-pixel map.