#NEWLINE# def __init__( self , num_zoom = 19 , tilesize = 256 ) : #NEWLINE# #INDENT# 'Initializes the Google Zoom object.' #NEWLINE# self . _tilesize = tilesize #NEWLINE# self . _nzoom = num_zoom #NEWLINE# self . _degpp = [ ] #NEWLINE# self . _radpp = [ ] #NEWLINE# self . _npix = [ ] #NEWLINE# z = tilesize #NEWLINE# for i in xrange ( num_zoom ) : #NEWLINE# #INDENT# self . _degpp . append ( ( z / 360.0 ) ) #NEWLINE# self . _radpp . append ( ( z / ( 2 * pi ) ) ) #NEWLINE# self . _npix . append ( ( z / 2 ) ) #NEWLINE# z *= 2