geography: 7149: some minor problems.

This commit is contained in:
noirauds 2015-02-18 18:28:20 +01:00
parent 12c4b21587
commit bb9e630bba

View File

@ -421,10 +421,10 @@ class OsmGps():
Show or hide the crosshair ?
"""
if active:
self.osm.layer_remove(self.cross_map)
self.cross_map = osmgpsmap.MapOsd( show_crosshair=True)
self.osm.layer_add( self.cross_map )
# The two following are to force the map to update
self.osm.zoom_in()
self.osm.zoom_out()
else:
self.osm.layer_remove(self.cross_map)
self.cross_map = osmgpsmap.MapOsd( show_crosshair=False)
self.osm.layer_add( self.cross_map )