def get(self): builder = map_builder.MapBuilder(self.config, self.db) data, center = builder.prepare_jsons(None, center_icu=None, level='dept') return self.render('index.html', API_KEY=self.config.GOOGLE_API_KEY, center=center, data=data, version=icubam.__version__)
def get(self): locale = self.get_user_locale() builder = map_builder.MapBuilder(self.config, self.db, locale) level = self.get_query_argument('level', 'dept') data, center = builder.prepare_jsons(None, None, level=level) return self.render('map.html', API_KEY=self.config.GOOGLE_API_KEY, center=center, data=data, version=icubam.__version__)
def get(self): locale = self.get_user_locale() builder = map_builder.MapBuilder(self.config, self.db, locale) data, center = builder.prepare_jsons(None, center_icu=self.icu, level='dept') return self.render('index.html', API_KEY=self.config.GOOGLE_API_KEY, center=center, data=data, version=icubam.__version__, disclaimer_url=self.get_disclaimer_url())
def get(self): locale = self.get_user_locale() builder = map_builder.MapBuilder(self.config, self.db, locale) regions = [r.region_id for r in self.regions] if self.regions else None data, center = builder.prepare_jsons(None, center_icu=None, regions=regions, level='dept') return self.render('index.html', API_KEY=self.config.GOOGLE_API_KEY, center=center, data=data, version=icubam.__version__)
def initialize(self): super().initialize() self.builder = map_builder.MapBuilder(self.config, self.db)
def initialize(self, config, db_factory): super().initialize(config, db_factory) self.token_encoder = token.TokenEncoder(self.config) self.builder = map_builder.MapBuilder(config, self.db)