def toLatLng(self, zoom): self.mode = 'latlng' self.northeast = Units.pixel_to_latlng(self.northeast[1], self.northeast[0], zoom) self.southwest = Units.pixel_to_latlng(self.southwest[1], self.southwest[0], zoom) self.top = self.northeast.y self.right = self.northeast.x self.bottom = self.southwest.y self.left = self.southwest.x