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 |
|
|