def start(self): # pyglet.options['debug_gl'] = False if self.geoplotlib_config.bbox is not None: self.proj.fit(self.geoplotlib_config.bbox) elif len(self.geoplotlib_config.layers) > 0: self.proj.fit(BoundingBox.from_bboxes([l.bbox() for l in self.geoplotlib_config.layers])) for l in self.geoplotlib_config.layers: l.invalidate(self.proj) pyglet.app.run()
def start(self): #pyglet.options['debug_gl'] = False if self.geoplotlib_config.bbox is not None: self.proj.fit(self.geoplotlib_config.bbox, force_zoom=self.geoplotlib_config.requested_zoom) elif len(self.geoplotlib_config.layers) > 0: self.proj.fit(BoundingBox.from_bboxes([l.bbox() for l in self.geoplotlib_config.layers]), force_zoom=self.geoplotlib_config.requested_zoom) for l in self.geoplotlib_config.layers: l.invalidate(self.proj) pyglet.app.run()