# FIXME : instead of hardcoded, should depend on the actual display size
if distance > 150 :
- self.conf.lat , self.conf.lon = latlon
+ self.conf.set_latlon( latlon )
self.reftile_x , self.refpix_x = self.lon2tilex( self.conf.lon , self.conf.zoom )
self.reftile_y , self.refpix_y = self.lat2tiley( self.conf.lat , self.conf.zoom )
lon = self.tilex2lon( ( self.reftile_x , self.refpix_x ) , self.conf.zoom )
self.reftile_x , self.refpix_x = self.lon2tilex( lon , zoom )
self.reftile_y , self.refpix_y = self.lat2tiley( lat , zoom )
- self.conf.zoom = zoom
+ self.conf.set_zoom( zoom )
self.composeMap()
self.show()