MIN_SATELLITE_ZOOM = -5 MIN_MAP_ZOOM = 0 MIN_OVERLAY_ZOOM = 0 MIN_RELIEF_ZOOM = 2 def fetch(url): import os img = os.popen('curl -s -f "%(url)s"' % vars(), 'r').read() if len(img): return img return None def image_number_to_sel(x, y, zoom, sel_t = ['q','r','t','s']): x = int(x) y = int(y) bits = range(17-zoom); bits.reverse() sel = 't' for bit in bits: index = 0 if x & (1<