use Champlain qw(:coords :maps);
-my $OSM_LICENSE = "(CC) BY 2.0 OpenStreetMap contributors";
+my $OSM_LICENSE = "CC-BY-SA 2.0 OpenStreetMap contributors";
+my $OSM_URL_LICENSE = 'http://creativecommons.org/licenses/by-sa/2.0/';
exit tests();
is($map->get_max_zoom_level, 18, "$label max zoom");
is($map->get_tile_size, 256, "$label tile size");
is($map->get_license, $OSM_LICENSE, "$label license");
- is($map->get_license_uri, 'http://creativecommons.org/licenses/by/2.0/' , "$label license_uri");
+ is($map->get_license_uri, $OSM_URL_LICENSE , "$label license_uri");
# Generic map operations
generic_map_operations($label, $map);
is($map->get_max_zoom_level, 18, "$label max zoom");
is($map->get_tile_size, 256, "$label tile size");
is($map->get_license, $OSM_LICENSE, "$label license");
- is($map->get_license_uri, 'http://creativecommons.org/licenses/by/2.0/' , "$label license_uri");
+ is($map->get_license_uri, $OSM_URL_LICENSE , "$label license_uri");
# Generic map operations
generic_map_operations($label, $map);
is($map->get_max_zoom_level, 18, "$label max zoom");
is($map->get_tile_size, 256, "$label tile size");
is($map->get_license, $OSM_LICENSE, "$label license");
- is($map->get_license_uri, 'http://creativecommons.org/licenses/by/2.0/' , "$label license_uri");
+ is($map->get_license_uri, $OSM_URL_LICENSE , "$label license_uri");
# Generic map operations
generic_map_operations($label, $map);