* Returns a ready to use #ChamplainMapSource matching the given name, returns
* NULL is none match.
*
+ * The id should not contain any character that can't be in a filename as it
+ * will be used as the cache directory name for that map source.
+ *
* Since: 0.4
*/
ChamplainMapSource *
ChamplainMapSourceDesc *desc, ChamplainMapSourceConstructor constructor,
gpointer user_data);
-#define CHAMPLAIN_MAP_SOURCE_OSM_MAPNIK "osm::mapnik"
-#define CHAMPLAIN_MAP_SOURCE_OSM_OSMARENDER "osm::osmarender"
-#define CHAMPLAIN_MAP_SOURCE_OSM_CYCLE_MAP "osm::cyclemap"
+#define CHAMPLAIN_MAP_SOURCE_OSM_MAPNIK "osm-mapnik"
+#define CHAMPLAIN_MAP_SOURCE_OSM_OSMARENDER "osm-osmarender"
+#define CHAMPLAIN_MAP_SOURCE_OSM_CYCLE_MAP "osm-cyclemap"
#define CHAMPLAIN_MAP_SOURCE_OAM "oam"
-#define CHAMPLAIN_MAP_SOURCE_MFF_RELIEF "mff::relief"
+#define CHAMPLAIN_MAP_SOURCE_MFF_RELIEF "mff-relief"
G_END_DECLS
return g_strdup_printf ("%s" G_DIR_SEPARATOR_S "%s" G_DIR_SEPARATOR_S
"%s" G_DIR_SEPARATOR_S "%d" G_DIR_SEPARATOR_S
"%d" G_DIR_SEPARATOR_S "%d.png", g_get_user_cache_dir (),
- CACHE_SUBDIR, champlain_map_source_get_name (CHAMPLAIN_MAP_SOURCE (source)),
+ CACHE_SUBDIR, champlain_map_source_get_id (CHAMPLAIN_MAP_SOURCE (source)),
champlain_tile_get_zoom_level (tile),
champlain_tile_get_x (tile), champlain_tile_get_y (tile));
}