Rob Norris [Sat, 9 Mar 2013 10:29:46 +0000 (10:29 +0000)]
Extend map scales down to support 1/32 zoom level.
Refactor all usage of 'GZ()' and *_mpp_to_scale() to use common definitions.
Including the addition of map_utils_mpp_to_zoom_level() and use it with WebToolCenter.
Rob Norris [Wed, 6 Mar 2013 19:50:53 +0000 (19:50 +0000)]
Fix use of scaled tile image when tile image not present.
Due to the two stage initialization of the VIK_MAP_SOURCE the tilesize was actually set to zero.
This leads to the mapslayer redraw *not* trying differing tile zooms to get a pixbuf for the current zoom level.
First vik_map_source_init is performed (such as vik_slippy_map_source_init(),
which sets a specific tilesize value in the first g_object_new() call.
However since the tilesize parameter is 'G_PARAM_CONSTRUCT | G_PARAM_READWRITE',
on the second g_object_new() such as in osm_init(), since the tilesize is not specified
it seems it is then 'constructed' with the default g_param value - which in this case is 0.
Thus to prevent the resetting of the tilesize, set it to 'G_PARAM_READWRITE'
and hence the extra (re)construction is avoided.
Greg Troxel [Thu, 15 Dec 2011 19:12:11 +0000 (14:12 -0500)]
Allow zoom to 1/32.
Sometimes I want to look at a track in fine detail, perhaps to
understand quantization. I find the default limit of 1/8 meter per
pixel too constraining, and I don't find allowing the user to zoom in
a bit to be problematic.
Rob Norris [Tue, 26 Feb 2013 23:15:31 +0000 (23:15 +0000)]
Fix datasource acquiring waypoints from geotag images.
Still need to return something for the 'command'.
I think in some personnel reworking to the acquire.c method I stopped requiring the command to have a value, thus I removed it.
Unfortunately I shouldn't have checked in this change to the geotag datasource, as in the end the acquire rework didn't include this hoped for simplification.
Rob Norris [Wed, 23 Jan 2013 21:14:50 +0000 (21:14 +0000)]
Add default values for layers.
Add functions to set the default layer parameter data, which is used on initialization.
This uses the GKeyFile mechanism to read and write files.
Using the group type offers a straightforward way to map to the layer name.
Enable GUI access to change the default values.
Rework the layer initialization to use the current default value for each parameter.
Rob Norris [Sun, 10 Feb 2013 22:26:26 +0000 (22:26 +0000)]
Fix crashing if creating a DEM layer with no files.
Ensure the layer is realized before accepting updates, as VIK_GTK_WINDOW_FROM_LAYER will fail.
In the DEM case: since there's no files, the thread exits and generates a layer update before the layer is realized.
So it's better not to bother with a thread if there's no files to use.
Rob Norris [Sat, 9 Feb 2013 03:25:13 +0000 (03:25 +0000)]
Need more files for Windows packaging.
Put locale files in right place.
Add our text files and COPYING notices.
Setup to package GTK2.24.10
When creating via Wine - ensure production of items not known how on Windows:
. ChangeLog.txt
. Help PDF
. configure script
Rob Norris [Sun, 3 Feb 2013 22:13:30 +0000 (22:13 +0000)]
Windows: Script full generation of Windows build from scratch for version 1.4.
Aim to be able to automate the generation of Windows Viking Installer executable from scratch.
[Preferably from a Linux System using Wine]
Script to setup full Windows build environment (including various work-a-rounds),
using old but known to work MinGW5.1.6 + gcc3.4.5 compiler and various dependencies.
Miscellaneous scripts to make this work via Wine.
TODO: In the future look to using the current MinGW (Dev System) with gcc4.6+
This should hopefully simplify the auto build environment.
Since it is possible to change the zoom level from the status bar,
there is no more need for an other zoom level selector.
Furthermore, it is always better to have a GUI as clean as possible.
This patch remove the combo box allowing to select the zoom level
from the tool bar.
This patch also refactor the zoom levels related list.
A single click on zoom indicator on status bar opens a zoom selector.
It seems quite natural to click on the indicator to change the corresponding
value. As zoom level is displayed on statusbar, a click on statusbar should
open a zoom selector.
Rob Norris [Fri, 7 Dec 2012 22:45:51 +0000 (22:45 +0000)]
Add map layer option to only download missing tiles.
Useful for low bandwidth and/or pay for data services yet you want the convenience of the autodownload.
Also useful for map types which hardly ever change e.g. BlueMarble,
so no need to bother the server to ask if there are newer tiles!
Rob Norris [Sat, 26 Jan 2013 12:00:39 +0000 (12:00 +0000)]
[QA] Reduce warnings when compiling with Clang.
Don't need to:
Comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
+
Explicitly assigning a variable of type to itself [-Wself-assign]