X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/db03733a614fc5f52ede5d5c83b8aeb5651599aa..78af40635535da56ceb0b83ca15a7f6c8fc615bd:/src/bluemarble.c diff --git a/src/bluemarble.c b/src/bluemarble.c index 2c03fba7..0812e7f2 100644 --- a/src/bluemarble.c +++ b/src/bluemarble.c @@ -27,7 +27,17 @@ /* initialisation */ void bluemarble_init () { - VikMapSource *bluemarble_type = VIK_MAP_SOURCE(vik_slippy_map_source_new_with_id( 15, "BlueMarble", "s3.amazonaws.com", "/com.modestmaps.bluemarble/%d-r%3$d-c%2$d.jpg" )); + VikMapSource *bluemarble_type = VIK_MAP_SOURCE(g_object_new(VIK_TYPE_SLIPPY_MAP_SOURCE, + "id", 15, + "label", "BlueMarble", + "hostname", "s3.amazonaws.com", + "url", "/com.modestmaps.bluemarble/%d-r%3$d-c%2$d.jpg", + "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_type); }