#!/usr/bin/perl -w use strict; my @match; my @del; my @add; my $line; while (<>) { last if (m#GV_Draw_Marker#); #s#
RunwayFinder.com' } ]; EOF } if ($_ =~ /function GV_Map/) { $add[3] = 1; print < GV_Toggle_All_Tracks(false); for (var t=0; t EOF } if ($_ =~ /gv_options.tracklist_options.collapsible /) { $add[2] = 1; print < EOF } } $line = $_ or die "Read too many lines, none left (were there no waypoints?)"; for (my $i = 1; $i < 10; $i++) { die "Did not match $i" if (not $match[$i]); } for (my $i = 1; $i < 3; $i++) { die "Did not delete $i" if (not $del[$i]); } for (my $i = 1; $i < 5; $i++) { die "Did not add $i" if (not $add[$i]); } print < EOF print $line; while (<>) { last if (m#GV_Finish_Map# ); print $_; } print < // this is optional to resize the waypoint list height on the first display \$('gv_marker_list').style.height = (gmap.getSize().height-640)+'px'; GEvent.addListener(gmap, "resize", function() { // resize accordingly when needed \$('gv_marker_list').style.height = (gmap.getSize().height-640)+'px'; }); GV_Finish_Map(gv_options); } else { document.getElementById('gmap_div').style.backgroundColor = '#DDDDDD'; document.getElementById('gmap_div').innerHTML = 'Sorry, your Google Map cannot be displayed.'; } } GV_Map(); // execute the above code EOF # vim:sts=4:sw=4