]> git.street.me.uk Git - andy/viking.git/blobdiff - src/terraserver.c
Add menu item for help contents
[andy/viking.git] / src / terraserver.c
index 4499dbfd6e7c5fcfbedeec783c58b8f1b5bac1b3..8127da2ed181d9e1edc4dcd38c67cd2e8e6ccf17 100644 (file)
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  *
  */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
 
 #include <gtk/gtk.h>
+#ifdef HAVE_MATH_H
 #include <math.h>
+#endif
+
 #include "viking.h"
 #include "coords.h"
 #include "vikcoord.h"
@@ -41,7 +47,7 @@ static int terraserver_urban_download ( MapCoord *src, const gchar *dest_fn );
 
 static void terraserver_mapcoord_to_center_coord ( MapCoord *src, VikCoord *dest );
 
-static DownloadOptions terraserver_options = { 0 };
+static DownloadOptions terraserver_options = { NULL, 0, a_check_map_file };
 
 void terraserver_init () {
   VikMapsLayer_MapType map_type_1 = { 2, 200, 200, VIK_VIEWPORT_DRAWMODE_UTM, terraserver_topo_coord_to_mapcoord, terraserver_mapcoord_to_center_coord, terraserver_topo_download };