+ VikMapSource *mapquest_type =
+ VIK_MAP_SOURCE(g_object_new(VIK_TYPE_SLIPPY_MAP_SOURCE,
+ "id", 19,
+ "label", "OpenStreetMap (MapQuest)",
+ "hostname", "otile1.mqcdn.com",
+ "url", "/tiles/1.0.0/osm/%d/%d/%d.png",
+ "check-file-server-time", TRUE,
+ "use-etag", FALSE,
+ "copyright", "Tiles Courtesy of MapQuest © OpenStreetMap contributors",
+ "license", "MapQuest Specific",
+ "license-url", "http://developer.mapquest.com/web/info/terms-of-use",
+ NULL));
+
+ // NB no cache needed for this type!!
+ VikMapSource *direct_type =
+ VIK_MAP_SOURCE(g_object_new(VIK_TYPE_SLIPPY_MAP_SOURCE,
+ "id", 21,
+ "label", _("On Disk OSM Tile Format"),
+ // For using your own generated data assumed you know the license already!
+ "copyright", "© OpenStreetMap contributors", // probably
+ "use-direct-file-access", TRUE,
+ NULL));
+
+ maps_layer_register_map_source (mapquest_type);