コード例 #1
0
 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)
コード例 #2
0
ファイル: application.py プロジェクト: jonnius/pure-maps
 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)
コード例 #3
0
 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()