diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-02-28 16:19:12 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-03-01 23:09:12 -0800 |
commit | d1c394e51f7ab792650246dff74677609a9e7ea8 (patch) | |
tree | ed47932024d4f5c3420da9964081f7e40dcc9b14 /main.c | |
parent | b24d0f2f60fc8a7c0bbe2cf4ceac584f9ef24878 (diff) | |
download | subsurface-d1c394e51f7ab792650246dff74677609a9e7ea8.tar.gz |
Make the map provider choice a preference
Not all of the providers seem to work for me (Yahoo Satellite doesn't
appear to give me any data), but for now I'll leave most of them in.
We can later decide to offer only some of them.
It might be more fun to be able to pick the provider directly from the map
widget. But for now I kept this in the preferences which seemed to be a
good place for it.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -10,6 +10,9 @@ #include "dive.h" #include "divelist.h" +#if HAVE_OSM_GPS_MAP +#include <osm-gps-map.h> +#endif #ifdef DEBUGFILE char *debugfilename; FILE *debugfile; @@ -35,6 +38,9 @@ struct preferences default_prefs = { .calc_ceiling_3m_incr = FALSE, .gflow = 0.30, .gfhigh = 0.75, +#if HAVE_OSM_GPS_MAP + .map_provider = OSM_GPS_MAP_SOURCE_VIRTUAL_EARTH_HYBRID, +#endif }; /* random helper functions, used here or elsewhere */ |