From: Emmanuel Rodriguez Date: Sat, 11 Jul 2009 09:08:40 +0000 (+0200) Subject: Use a SelectionLayer for the markers X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9bca02570d13cc5b09b377152569a54adecea7d;p=libchamplain Use a SelectionLayer for the markers --- diff --git a/bindings/perl/Champlain/examples/launcher.pl b/bindings/perl/Champlain/examples/launcher.pl index c1b9b6e..693391e 100755 --- a/bindings/perl/Champlain/examples/launcher.pl +++ b/bindings/perl/Champlain/examples/launcher.pl @@ -50,7 +50,7 @@ sub main { $map->add_layer($layer); # Finish initializing the map view - $map->set_property("zoom-level", 7); + $map->set_property("zoom-level", 5); $map->center_on(45.466, -73.75); # Middle click to get the location in the map @@ -98,7 +98,7 @@ sub make_button { sub create_marker_layer { my ($map) = @_; - my $layer = Champlain::Layer->new(); + my $layer = Champlain::SelectionLayer->new(); my $orange = Clutter::Color->new(0xf3, 0x94, 0x07, 0xbb); my $white = Clutter::Color->new(0xff, 0xff, 0xff, 0xff);