]> err.no Git - libchamplain/commitdiff
Give the MapView the same size as the stage
authorEmmanuel Rodriguez <emmanuel.rodriguez@gmail.com>
Fri, 18 Sep 2009 08:53:38 +0000 (10:53 +0200)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Mon, 21 Sep 2009 16:19:45 +0000 (12:19 -0400)
bindings/perl/Champlain/examples/flickr.pl

index 983dd3ec272dd2310709982e50f9412339742790..29c5b1101d24055c07edcfc96e96d7434ca8de96 100755 (executable)
@@ -52,7 +52,7 @@ sub main {
        $map->center_on(47.130885, -70.764141);
        $map->set_scroll_mode('kinetic');
        $map->set_zoom_level(5);
-       $map->set_size(640, 480);
+       $map->set_size($stage->get_size);
        $stage->add($map);
 
        # Create the markers and marker layer