#2 Fix for 'Go to Place/Waypoint' feature in map mode

open
nobody
None
5
2005-01-12
2005-01-12
Hirofumi Yamaki
No

In some cases, 'Go to Place/Waypoint' does not set the
map position correctly.
1. When the datum for GPS unit is different from that
for maps, the center mark goes to a wrong position.
2. Since the precision for saving coodinates to the
places.txt is not enough, the mark goes to slightly
shifted postion from the original one.

This patch changes mapdisp.cpp as follows.

* mapdisp.cpp (MapDisp::MapDispAddPos): Removed
gpsData->adjustDatum() from "Go to Place/Waypoint"
in Map Mode,
and "Set/Clear Destination" in GPS Mode.
In these cases, coordinates in currPos are already
stored in
the map datum, and calling adjustDatum() here causes
rong
positioning.

* mapdisp.cpp (MapDisp::MapDispAddPos): Increased the
precision,
for storing coodinates into places, from 6 to 16. It
is maybe
too big, but causes no problem. Six is too small.

Discussion