I am trying to implement a way of hiding all the tiles on the left or
right half of the map based on a user input. It is easy to figure out
whether a tile exists on the left or right half of the projection just
by using its' x-coordinate and zoom level:
if (coord.x >= 0.5 * math.pow(2, zoom level)
I am trying to implement a way of hiding all the tiles on the left or
right half of the map based on a user input. It is easy to figure out
whether a tile exists on the left or right half of the projection just
by using its' x-coordinate and zoom level:
if (coord.x >= 0.5 * math.pow(2, zoom level)