+ // NB no cache needed for this type!!
+ VikMapSource *direct_type =
+ VIK_MAP_SOURCE(g_object_new(VIK_TYPE_SLIPPY_MAP_SOURCE,
+ "id", MAP_ID_OSM_ON_DISK,
+ "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));
+
+ // NB no cache needed for this type!!
+ VikMapSource *mbtiles_type =
+ VIK_MAP_SOURCE(g_object_new(VIK_TYPE_SLIPPY_MAP_SOURCE,
+ "id", MAP_ID_MBTILES,
+ "label", _("MBTiles File"),
+ // For using your own generated data assumed you know the license already!
+ "copyright", "© OpenStreetMap contributors", // probably
+ "use-direct-file-access", TRUE,
+ "is-mbtiles", TRUE,
+ NULL));
+
+ // NB no cache needed for this type!!
+ VikMapSource *metatiles_type =
+ VIK_MAP_SOURCE(g_object_new(VIK_TYPE_SLIPPY_MAP_SOURCE,
+ "id", MAP_ID_OSM_METATILES,
+ "label", _("OSM Metatiles"),
+ // For using your own generated data assumed you know the license already!
+ "copyright", "© OpenStreetMap contributors", // probably
+ "use-direct-file-access", TRUE,
+ "is-osm-meta-tiles", TRUE,
+ NULL));
+
+ maps_layer_register_map_source (mapquest_type);