/[maps]/web/googlemap.cgi
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /web/googlemap.cgi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 17 by dpavlin, Mon Dec 3 14:47:08 2007 UTC revision 18 by dpavlin, Mon Dec 3 15:06:33 2007 UTC
# Line 74  if ( my $trace = $q->param('trace') ) { Line 74  if ( my $trace = $q->param('trace') ) {
74          }          }
75          close($fh);          close($fh);
76    
77          #$map->zoom(10);          if ( $points > 0 ) {
         #$map->v2_zoom(0);  
         $map->controls("large_map_control", "map_type_control");  
         $map->map_type('hybrid');  
78    
79          my ( $map_div, $map_script );                  #$map->zoom(10);
80          ( $head, $map_div, $map_script ) = $map->render;                  #$map->v2_zoom(0);
81                    $map->controls("large_map_control", "map_type_control");
82                    $map->map_type('hybrid');
83    
84          $html .= join('', qq{                  my ( $map_div, $map_script );
85                    ( $head, $map_div, $map_script ) = $map->render;
86    
87                    $html .= join('', qq{
88  <h1>Plotting $points points from }, $q->param('trace'), qq{</h1>  <h1>Plotting $points points from }, $q->param('trace'), qq{</h1>
89  $map_div  $map_div
90  $map_script  $map_script
91  <a href="http://aprs.gids.nl/nmea/">GPS - NMEA sentence information</a>  <a href="http://aprs.gids.nl/nmea/">GPS - NMEA sentence information</a>
92          });                  });
93            
94            } else {
95                    $html .= '<em>No points found for ' . $q->param('trace') . '</em>';
96            }
97    
98  }  }
99    

Legend:
Removed from v.17  
changed lines
  Added in v.18

  ViewVC Help
Powered by ViewVC 1.1.26