X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/7363caa739bd64724ec6b12208d4f30f06258845..cd0b7e8541b5e65f1c0ac9c9b3115d14cc58af0a:/src/bluemarble.c diff --git a/src/bluemarble.c b/src/bluemarble.c index faa399f9..a56068df 100644 --- a/src/bluemarble.c +++ b/src/bluemarble.c @@ -23,11 +23,26 @@ #include "bluemarble.h" #include "vikmapslayer.h" #include "vikslippymapsource.h" +#include "map_ids.h" /* initialisation */ -void bluemarble_init () { - VikMapSource *bluemarble_type = VIK_MAP_SOURCE(vik_slippy_map_source_new_with_id( 15, "s3.amazonaws.com", "/com.modestmaps.bluemarble/%d-r%3$d-c%2$d.jpg" )); +void bluemarble_init () +{ + VikMapSource *bluemarble_type = VIK_MAP_SOURCE(g_object_new(VIK_TYPE_SLIPPY_MAP_SOURCE, + "id", MAP_ID_BLUE_MARBLE, + "name", "BlueMarble", + "label", "BlueMarble", + "hostname", "s3.amazonaws.com", + "url", "/com.modestmaps.bluemarble/%d-r%3$d-c%2$d.jpg", + "zoom-min", 0, + "zoom-max", 9, + "copyright", "© NASA's Earth Observatory", + "license", "NASA Terms of Use", + "license-url", "http://visibleearth.nasa.gov/useterms.php", + NULL)); + /* Credit/Copyright from: http://earthobservatory.nasa.gov/Features/BlueMarble/ */ + /* BlueMarble image hosting is courtesy of the Modest Maps project: http://modestmaps.com/ */ - maps_layer_register_map_source ("BlueMarble", bluemarble_type); + maps_layer_register_map_source (bluemarble_type); }