diff --git a/gramps/plugins/lib/maps/osmgps.py b/gramps/plugins/lib/maps/osmgps.py index f5e8e0a9b..8f138dced 100644 --- a/gramps/plugins/lib/maps/osmgps.py +++ b/gramps/plugins/lib/maps/osmgps.py @@ -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 )