toTileIndexZoom method

TileIndex toTileIndexZoom(
  1. LatLng location,
  2. double zoom
)

Implementation

TileIndex toTileIndexZoom(LatLng location, double zoom) {
  var ret = toTileIndex(location);

  var mapSize = pow(2.0, zoom);

  return TileIndex(ret.x * mapSize, ret.y * mapSize);
}