def __init__(self): """Initialize an :class:`Application` instance.""" self.basemap = None self.geocoder = None self.guide = None self.history = poor.HistoryManager() self.narrative = poor.Narrative() self.router = None self.set_basemap(poor.conf.basemap) self.set_geocoder(poor.conf.geocoder) self.set_guide(poor.conf.guide) self.set_router(poor.conf.router)
def __init__(self): """Initialize an :class:`Application` instance.""" self.basemap = poor.MapManager() self.geocoder = None self.guide = None self.history = poor.HistoryManager() self.magfield = poor.MagField() self.narrative = poor.Narrative() self.router = None self.sun = poor.Sun() self.voice_tester = None self.set_basemap(poor.conf.basemap) self.set_geocoder(poor.conf.geocoder) self.set_guide(poor.conf.guide) self.set_router(poor.conf.router)
def __init__(self): """Initialize a :class:`Application` instance.""" self.basemap = None self._bbox = (-1,-1,-1,-1) self._download_queue = {} self.geocoder = None self.guide = None self.history = poor.HistoryManager() self.narrative = poor.Narrative() self.overlays = [] self.router = None self.tilecollection = poor.TileCollection() self._timestamp = int(time.time()*1000) self.set_basemap(poor.conf.basemap) self.add_overlays(*poor.conf.overlays) self.set_geocoder(poor.conf.geocoder) self.set_guide(poor.conf.guide) self.set_router(poor.conf.router) poor.cache.purge_async()