Fix bugs in map handling.

SaveMap and RevertMap tools works only in active map.
Set scale and visibility for lines in revert.