@@ -79,7 +79,7 @@ def lonlat_to_pixel(self, lonlat, zoom):
7979 fac = min (max (sin (DTOR * lat ), - 0.9999 ), 0.9999 )
8080
8181 # Calculating the pixel y coordinate.
82- px_y = round (npix + (0.5 * log ((1 + fac )/ (1 - fac )) * (- 1.0 * self ._radpp [zoom ])))
82+ px_y = round (npix + (0.5 * log ((1 + fac ) / (1 - fac )) * (- 1.0 * self ._radpp [zoom ])))
8383
8484 # Returning the pixel x, y to the caller of the function.
8585 return (px_x , px_y )
@@ -116,8 +116,8 @@ def tile(self, lonlat, zoom):
116116
117117 # Getting the lower-left and upper-right lat/lon coordinates
118118 # for the bounding box of the tile.
119- ll = self .pixel_to_lonlat ((px [0 ]- delta , px [1 ]- delta ), zoom )
120- ur = self .pixel_to_lonlat ((px [0 ]+ delta , px [1 ]+ delta ), zoom )
119+ ll = self .pixel_to_lonlat ((px [0 ] - delta , px [1 ] - delta ), zoom )
120+ ur = self .pixel_to_lonlat ((px [0 ] + delta , px [1 ] + delta ), zoom )
121121
122122 # Constructing the Polygon, representing the tile and returning.
123123 return Polygon (LinearRing (ll , (ll [0 ], ur [1 ]), ur , (ur [0 ], ll [1 ]), ll ), srid = 4326 )
@@ -143,10 +143,10 @@ def get_zoom(self, geom):
143143 if (env_w > tile_w ) or (env_h > tile_h ):
144144 if z == 0 :
145145 raise GoogleMapException ('Geometry width and height should not exceed that of the Earth.' )
146- return z - 1
146+ return z - 1
147147
148148 # Otherwise, we've zoomed in to the max.
149- return self ._nzoom - 1
149+ return self ._nzoom - 1
150150
151151 def get_width_height (self , extent ):
152152 """
0 commit comments