# Map identification
is(Champlain::MapSourceFactory->OSM_MAPNIK, 'OpenStreetMap Mapnik');
is(Champlain::MapSourceFactory->OSM_OSMARENDER, 'OpenStreetMap Osmarender');
- is(Champlain::MapSourceFactory->OSM_CYCLEMAP, 'OpenStreetMap CycleMap');
+ is(Champlain::MapSourceFactory->OSM_CYCLE_MAP, 'OpenStreetMap CycleMap');
is(Champlain::MapSourceFactory->OAM, 'OpenAerialMap');
is(Champlain::MapSourceFactory->MFF_RELIEF, 'MapsForFree Relief');
}
generic_create($factory, Champlain::MapSourceFactory->OSM_MAPNIK);
generic_create($factory, Champlain::MapSourceFactory->OSM_OSMARENDER);
- generic_create($factory, Champlain::MapSourceFactory->OSM_CYCLEMAP);
+ generic_create($factory, Champlain::MapSourceFactory->OSM_CYCLE_MAP);
generic_create($factory, Champlain::MapSourceFactory->OAM);
generic_create($factory, Champlain::MapSourceFactory->MFF_RELIEF);
void
champlain_map_source_factory_get_list (ChamplainMapSourceFactory *factory)
PREINIT:
- gchar **list = NULL;
- gchar *item = NULL;
- gint i = 0;
+ GSList *list = NULL;
+ GSList *item = NULL;
PPCODE:
list = champlain_map_source_factory_get_list(factory);
- item = list[0];
- while (item != NULL) {
- XPUSHs(sv_2mortal(newSVGChar(item)));
- item = list[++i];
+ for (item = list; item != NULL; item = item->next) {
+// ChamplainMapSourceDesc *desc = CHAMAPLAIN_MAP_SOURCE_DESC(item->data);
+// XPUSHs(sv_2mortal(newSVChamplainMapSourceDesc(desc)));
}
- g_strfreev(list);
+ g_slist_free(list);
ChamplainMapSource*
const gchar*
-OSM_CYCLEMAP (class)
+OSM_CYCLE_MAP (class)
CODE:
- RETVAL = CHAMPLAIN_MAP_SOURCE_OSM_CYCLEMAP;
+ RETVAL = CHAMPLAIN_MAP_SOURCE_OSM_CYCLE_MAP;
OUTPUT:
RETVAL