#include "bluemarble.h"
#include "vikmapslayer.h"
-#include "osm-map-type.h"
+#include "vikslippymapsource.h"
/* initialisation */
-void bluemarble_init () {
- VikMapType *bluemarble_type = VIK_MAP_TYPE(osm_map_type_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", 15,
+ "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_type("BlueMarble", 15, bluemarble_type);
+ maps_layer_register_map_source (bluemarble_type);
}