Re: [Viking-devel] small wishlist items
Robert Norris rw_nor...@hotmail.com writes: The way I was thinking would be for whatever 'gpx' like thing was loaded or acquired (i.e. TrackWaypoint Layer) , zoom out to a level that would show all waypoints and/or trackpoints. There already is a 'vik_trw_layer_find_center' function which knows the bounds of the layer, just need some kind of method to convert from bounds to zoom level. May have to loop through zoom levels until we find one that that's within (vikviewport) view. If there's lots of TrackWaypoint Layers (potentially in a .vik file or loading *gpx), may want to delay this until the final TrackWaypoint Layer is processed. That all makes sense, and I'll suggest that if there are multiple TrackWaypoint layers, then if at least one is track only then zoom should be determined only from tracks, or something like that. pgppQtYX8X7GB.pgp Description: PGP signature -- ___ Viking-devel mailing list Viking-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/viking-devel Viking home page: http://viking.sf.net/
[Viking-devel] [PATCH] Fix compiler warning.
--- src/terraservermapsource.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/terraservermapsource.c b/src/terraservermapsource.c index 7fdbbf6..7fb9472 100644 --- a/src/terraservermapsource.c +++ b/src/terraservermapsource.c @@ -34,7 +34,7 @@ static void * _download_handle_init ( VikMapSource *self ); static void _download_handle_cleanup ( VikMapSource *self, void *handle ); /* FIXME Huge gruik */ -static DownloadOptions terraserver_options = { NULL, 0, a_check_map_file }; +static DownloadOptions terraserver_options = { 0, NULL, 0, a_check_map_file }; typedef struct _TerraserverMapSourcePrivate TerraserverMapSourcePrivate; struct _TerraserverMapSourcePrivate -- 1.7.1 -- ___ Viking-devel mailing list Viking-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/viking-devel Viking home page: http://viking.sf.net/