]> err.no Git - libchamplain/commitdiff
Use a SelectionLayer for the markers
authorEmmanuel Rodriguez <emmanuel.rodriguez@gmail.com>
Sat, 11 Jul 2009 09:08:40 +0000 (11:08 +0200)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Tue, 28 Jul 2009 21:28:39 +0000 (17:28 -0400)
bindings/perl/Champlain/examples/launcher.pl

index c1b9b6e8ad2c0a5054a504b531800c43e35dbf63..693391ebdf7ab2c2c86ea7408431cc6a41de810c 100755 (executable)
@@ -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);