Quy Tonthat [Wed, 8 Aug 2007 14:55:43 +0000 (14:55 +0000)]
Make Google Map default map type.
Map mode selection is the most confusing "feature" left on viking for many
new users. Until someone has time to fix it (auto view mode, perhaps), we
now set the default map mode to Google Map, assuming it is the most widely used
for viking users.
Acquiring GeoCaches nolonger works. While waiting for being fixed, it is now
disabled to avoid confusing for users. The codes can be re-enabled using
configure --enable-geocaches.
Eliminate the needs of entering DEM files for every single track/waypoint layer.
TODO:
- When there are more than one DEM sources for a track point, select the one
with best resolution.
- To improve prformance keep a sorted list (sorted by lat/lon).
Fixed bugs that caused "draw_scale" and "draw_centermark" not consistent.
Fixed following bugs related to scale and centermark:
- View menu items did not always reflect correctly when loading from files.
- View menu items and the viewport did not always have the same state
(on/off)
Fix bugs that caused crashes on gps download/upload.
The problem was caused by the parser for gpsbabel debug output.
The fix should stop viking from crashing, but the progress dialog still may not
display counters accurately for some model of GPS. The fix was only tested
with Garmin GPS 12. Fixing problems for other GPS requires output of
"gpsbabel -D 9 -t -w -i garmin -f /dev/ttyUSB0 -o gpx -F /dev/null"
This fix also plugged a memory leak in the parser..
Make "Save Image" and "Save Image Directory" dialogs reusable.
The two dialogs are now more consistent with "Save" and "Save As" dialogs.
This also enables them to remember the last directory used (annoyance otherwise).
This m4 module is necessary, at least to detect that libcurl is not available.
Sort of chicken/egg problem. Looking at gettextize, it seems that the
correct solution is to copy the m4 script of optional modules in a m4 directory
ensuring they will be found everywhere.
Quy Tonthat [Mon, 18 Jun 2007 14:24:40 +0000 (14:24 +0000)]
Added cookies to google requests.
Cookies are retrieved on the first request and stored in ~/.viking/cookies.txt.
The file is recreated (if needed) everytime viking starts.
Currently only google cookies are used. Others may be added if needed.
cookie, user-agent and referer are now added to the request header.
file.c:a_get_viking_dir() was added and should be used for others to query
(and creating if not existed) location of viking directory (~/.viking).
Quy Tonthat [Fri, 1 Jun 2007 11:22:55 +0000 (11:22 +0000)]
Bacported Evan's magic scissors from DEM branch.
To use it, select a TrackWaypoint layer, click on Magic Scissors tool,
then click 2 points on the map, viking will draw the route between the
two point using data from google maps.
Quy Tonthat [Thu, 31 May 2007 12:01:22 +0000 (12:01 +0000)]
Use google maps search string as comment for new immediately created waypoint.
After a successful search, before any operation that moves the map area,
a waypoint can be created for the resulted location by using "New Waypoint"
from the context menu of a TrackWaypoint layer. The "New Waypoint" dialog
will then use the search string as default "Comment".
Quy Tonthat [Sat, 26 May 2007 11:16:39 +0000 (11:16 +0000)]
Fix intermittent problem of map redraw.
The type mismatching (gint vs guint16) in the cache removing function can
cause coords truncated which leads to pixmaps not removed from the cache,
hence they are not updated on screen.
This only happens for coords with values larger than what a 16-bit number
can hold (> 65535). This is why the problem seems intermittent.
Quy Tonthat [Thu, 24 May 2007 08:26:40 +0000 (08:26 +0000)]
Small touches on the look.
- Ajust field width and alignment of treeview columns.
- Bring dimension constants to the top to make them easier to be found and
changed (Until we implement something more flexible for users to change
them)
Quy Tonthat [Thu, 24 May 2007 05:18:47 +0000 (05:18 +0000)]
Maps layer: Improve performance for map autodownload.
Autodownload is now only triggered when there are changes in zoom scale
or view location.
Map autodownload caused poor performance because it was triggered unnecessarily
by every update event. Most of these events are caused by interactions
that do not require map downloading. Autodownload itself is among the worst
sources of triggers. Autodownload threads generate update event for each
downloaded map tile. These events in turn create other threads
which generates more events and so on. Most of these threads will die out
quickly but the performance still suffers.
Quy Tonthat [Wed, 23 May 2007 14:03:34 +0000 (14:03 +0000)]
Google Directions now remembers previous query (from/to entries).
The from/to dialog will now display the previous query so that users can edit
or finetune the search.
(It was frustating mistyping a query just to get blank entriess back for
mistyping again, and again).
Note that this only works for one lifetime. Viking will forget the queries
once restarted.
Quy Tonthat [Wed, 23 May 2007 07:20:54 +0000 (07:20 +0000)]
Gpslayer: New menu items to remove all tracks and waypoints in GPS folders.
Data in Gps folders are likely short lived. Old data are often removed
before upload/download operation. The new menu items
(empty upload, empty download, empty all) are to make the task of
cleaning up the folders less painful (now that gps data are saved
and there is multiple selection is not yet implemented).