X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=wifiscanner%2Fwifimap%2Fview.py;h=959e87171cf8dacc1b223396701fa4f4484fc3b5;hb=eca23c8338ea42376b73f3c49383c311e558418d;hp=a3719cca0e7ae36ab53a2bafab873f9760dd5474;hpb=855fea5271aecf4d27394d8f168e50a2c35f27e1;p=wifihood diff --git a/wifiscanner/wifimap/view.py b/wifiscanner/wifimap/view.py index a3719cc..959e871 100755 --- a/wifiscanner/wifimap/view.py +++ b/wifiscanner/wifimap/view.py @@ -31,7 +31,7 @@ class AbstractmapWidget : # 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 ) @@ -55,7 +55,7 @@ class AbstractmapWidget : 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()