Quy Tonthat [Sat, 6 Oct 2007 22:18:21 +0000 (22:18 +0000)]
Correctly calculate position when click on speed-time graph.
- Clicking on speed-time graph jumped to wrong location on map. It was
calculated based on distance, not time. Problem is now fixed.
- Display km/h for speed entries on track properties dialog.
- Tidy up entries display on track properties.
Quy Tonthat [Thu, 4 Oct 2007 13:53:49 +0000 (13:53 +0000)]
Improvements for GPS layer's "Realtime tracking".
- Optimisation to be more preferable data from 3D fixes to 2D fixes
when recording realtime tracks.
- Tracking data are now stored in a separate layer of gps layer.
- Be more precise in selecting center when in moving map mode.
- The tracking cursor now has blinking light that reflects the
GPS status (red when 2D, green when 3D).
- libgps is now checked by configure.
Quy Tonthat [Tue, 2 Oct 2007 07:12:14 +0000 (07:12 +0000)]
Add realtime tracking to GPS layer.
New features included:
- Show real time position from GPS.
- New layer menu item to start/stop realtime tracking.
- Using gpsd. Host and port can be set in the layer properties dialog.
- Enable/disable track recording (in peroperties dialog). Tracks are
recorded in "GPS Download" folder.
- Jump to the first position on start (enable/disable in properties dialog).
- Moving maps to keep current tracking position at the center (enable/disable
in properties dialog)
Quy Tonthat [Mon, 1 Oct 2007 14:10:26 +0000 (14:10 +0000)]
Disable half-drawn update mode when the center is moved.
- When the center of the viewport is moved, all layers need to be redrawn.
- Data for half-drawn are now in VikWindow where they belong. Having had
"trigger" as a static variable in viklayer would cause problems when
viking has more than one windows.
Fix a long lasting bug that causes track property not working properly.
Elevation graph did not work properly for tracks that start with trackpoints
without altitude values followed by trackpoints that do have alt. This
can also cause segfault in some case (more track points without than ones
with)
SRTM download now works for regions outside North_America too.
Hash table is used to look up directory name where the files are stored
on the server. The hash table is generated from directory listing of
the server.
Evan Battaglia [Sun, 23 Sep 2007 06:30:41 +0000 (06:30 +0000)]
* Pan Accelerators (Ctrl+Left, etc)
* Ctrl-Scroll and Ctrl-Shift-Scroll to pan, kind of like Gimp.
* Add a RADIOGROUP_STATIC properties factory type to make it easy
for new layers. Uses an array list (like before)
instead of a GList.
* DEM US 10m (dem24k) source! Option in DEM Layer & ./configure
* (copying & pasting DEM layers is broken, will fix later)
Downloading maps from gogle requires a number embeded in the request uri.
These numbers are known to be changed by google over time.
Viking now tries to work out the current numbers instead of using the hardcoded.
This is done once right before the first google map download request, in a
viking session.
So it is possible to build viking on system not offering such feature.
By this way, viking will only fail on system without $HOME, nor functional
g_get_home_dir, nor mkdtemp function.
- Use g_build_filename to concat path elements
- Use g_get_home_dir as fallback
Glib offers a function to retrieve the home directory of the current user.
As it is not based on $HOME, we use it as a fallback function.
See http://library.gnome.org/devel/glib/stable/glib-Miscellaneous-Utility-Functions.html#g-get-home-dir
Fix a bug that causes crashes when using "Maps Download" tool.
The crash can be reproduced consistently using the followings:
1. start viking without argument
2. create a map layer, using default settings.
3. select the map layer.
4. select "Maps Download" tool on toolbar.
5. click anywhere on the map (the viewport)
This problem was due to the mode of the center coord was not initialised.
THe problem is now fixed.
Make viking's default start location somewhere more likely has maps.
The location before this fix was virtually nowhere in the sea which
has no maps from most popular sources. This can be quite confusing
for first time users who don't even know how to navigate to a location
that has maps.
Viking now starts in New York City. Not because it is my most favourite
place on earth (which is Sydney BTW), but it is because we more likely
find maps there.
Refactoring: retrieve the VikWindow from the VikViewport via its GtkWidget nature
Instead of storing one more reference in the VikVewport structure,
we use the fact that VikWindow is the top level window. So, it is possible
to retrieve it from any of its children. And, hopefully, VikViewport
is also a GtkWidget, child of the main window.
Fix: crash when "applying" a map layer property dialog
Bug reported by Øyvind Ottestad
1) Add a map layer
2) Right-click the map-layer and change one of the settings (in my case,
unchecking auto-download maps)
3) Program crashes
Disable Expedia map layer by default (as it is not working)
The Expedia map layer is not working since long time (see issue #1211389).
No need to activate a bogus stuff. Interested users can use
--enable-expedia
A new menu entry allows to upload the data of a TrwLayer to OpenStreetMap
as a GPX data file.
Technics:
The button opens a dialog to request the needed parameters:
- authentification informations (email and password)
- a filename (initially built with the name of the TrwLayer)
- the descriptios, tags and visibility of the trace
Then, a background thread is activated.
TODO:
- Check the parameter (not empty, syntactically correct tags)
- Error handling: as the upload is threaded, the error is not displayed
- Allow to upload a simple track (not a whole TrwLayer)
It is no more a optional feature, but an "hard" requirement.
The main reason is that it is time consuming to maintain code
to work with and without libcurl. Furthermore, libcurl is available
in a lot of distributions now.
Quy Tonthat [Wed, 15 Aug 2007 02:57:57 +0000 (02:57 +0000)]
Old google modes are now disabled by default.
* New --enable-old-google for configure script to allow users to enable
the feature.
* When old google modes are disabled, their view modes will not be shown
on view menu.
* Fix bugs that prevent Google Maps from being set as default map when
creating new map layer.
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).