[Google Maps API v3] Adding code to getTileUrl

2011-10-20 Thread Kesuke
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)

[Google Maps API v3] Adding code to getTileUrl

2011-10-20 Thread Kesuke
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)