X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/1ac37c0903a6aae38d485baeca0ef99f3fcf695b..6a4a29aa76af1b8ed8695cf8ed16c186b571d9e1:/src/expedia.c diff --git a/src/expedia.c b/src/expedia.c index c3363f17..9b996658 100644 --- a/src/expedia.c +++ b/src/expedia.c @@ -27,7 +27,10 @@ #include #include +#ifdef HAVE_MATH_H #include +#endif + #include "globals.h" #include "coords.h" #include "vikcoord.h" @@ -41,10 +44,10 @@ static gboolean expedia_coord_to_mapcoord ( const VikCoord *src, gdouble xzoom, static void expedia_mapcoord_to_center_coord ( MapCoord *src, VikCoord *dest ); static int expedia_download ( MapCoord *src, const gchar *dest_fn ); -static DownloadOptions expedia_options = { NULL, 2, a_check_map_file }; +static DownloadOptions expedia_options = { FALSE, NULL, 2, a_check_map_file }; void expedia_init() { - VikMapsLayer_MapType map_type = { 5, 0, 0, VIK_VIEWPORT_DRAWMODE_EXPEDIA, expedia_coord_to_mapcoord, expedia_mapcoord_to_center_coord, expedia_download }; + VikMapsLayer_MapType map_type = { 5, 0, 0, VIK_VIEWPORT_DRAWMODE_EXPEDIA, expedia_coord_to_mapcoord, expedia_mapcoord_to_center_coord, expedia_download, &expedia_options }; maps_layer_register_type(_("Expedia Street Maps"), 5, &map_type); }