my ($oam) = @found;
isa_ok($oam, 'Champlain::MapSourceDesc');
- is($oam->{id}, Champlain::MapSourceFactory->OAM);
- is($oam->{name}, 'OpenAerialMap');
- is($oam->{license}, "(CC) BY 3.0 OpenAerialMap contributors");
- is($oam->{license_uri}, 'http://creativecommons.org/licenses/by/3.0/');
- is($oam->{min_zoom_level}, 0);
- is($oam->{max_zoom_level}, 17);
- is($oam->{projection}, 'mercator');
+ is($oam->id, Champlain::MapSourceFactory->OAM);
+ is($oam->name, 'OpenAerialMap');
+ is($oam->license, "(CC) BY 3.0 OpenAerialMap contributors");
+ is($oam->license_uri, 'http://creativecommons.org/licenses/by/3.0/');
+ is($oam->min_zoom_level, 0);
+ is($oam->max_zoom_level, 17);
+ is($oam->projection, 'mercator');
# Getters
is($oam->get_id, $oam->{id}, "get_id()");
OUTPUT:
RETVAL
+/**
+ * Provide nice accessors to the data members of the struct.
+ */
+SV*
+id (ChamplainMapSourceDesc *desc)
+ ALIAS:
+ Champlain::MapSourceDesc::name = 1
+ Champlain::MapSourceDesc::license = 2
+ Champlain::MapSourceDesc::license_uri = 3
+ Champlain::MapSourceDesc::min_zoom_level = 4
+ Champlain::MapSourceDesc::max_zoom_level = 5
+ Champlain::MapSourceDesc::projection = 6
+
+ CODE:
+ switch (ix) {
+ case 0: RETVAL = newSVGChar(desc->id); break;
+ case 1: RETVAL = newSVGChar(desc->name); break;
+ case 2: RETVAL = newSVGChar(desc->license); break;
+ case 3: RETVAL = newSVGChar(desc->license_uri); break;
+ case 4: RETVAL = newSViv(desc->min_zoom_level); break;
+ case 5: RETVAL = newSViv(desc->max_zoom_level); break;
+ case 6: RETVAL = newSVChamplainMapProjection(desc->projection); break;
+ default:
+ RETVAL = &PL_sv_undef;
+ g_assert_not_reached ();
+ }
+
+ OUTPUT:
+ RETVAL
+
const gchar*
OSM_MAPNIK (class)