HTML-GMap
view release on metacpan or search on metacpan
lib/HTML/GMap/Files.pm view on Meta::CPAN
], "#ff8b04", 2);
map.addOverlay(polyline);
map.addOverlay(polyline); // Every other polyline is skipped, a potential bug; observe 8/10/07
}
// document.getElementById("debug").innerHTML = 'zoom:' + map.getZoom();
return 1;
}
// Start refresh (clear overlays and messages)
function startRefresh() {
// Clear existing overlays
map.clearOverlays();
document.getElementById("status").innerHTML = 'Moving ...';
document.getElementById("legend").innerHTML = '';
document.getElementById("legend_message").innerHTML = '';
document.getElementById("details").innerHTML = '';
}
// Refresh display (clear overlays, send an AJAX request, process request)
function doRefresh(event) {
var drawGrid = varStore.drawGrid;
// Clear existing overlays
map.clearOverlays();
document.getElementById("status").innerHTML = "Refreshing ...";
// Construct URL based on coordinates and form values
var requestUrl = constructUrl();
// Query database, pass results on for parsing
GDownloadUrl(requestUrl, processRequest); // No parentheses
lib/HTML/GMap/Tutorial.pm view on Meta::CPAN
=head1 NAME
HTML::GMap::Tutorial - HTML::GMap distribution tutorial
=head1 DESCRIPTION
This is the tutorial for HTML::GMap module.
=head1 INTRODUCTION
Google Maps service provides an AJAX-based geographic map and a Javascript API that allows operations such as overlaying images and lines on the geographic map. The map can be dragged using the mouse.
HTML::GMap wraps around the Google Maps API and provides a generic Perl infrastructure that can be used to easily build interactive web applications that display geographic data stored in a database. HTML::GMap handles HTML page rendering, graph/icon...
For example, let's say that you have a database that contains locations of stores that belong to a grocery store chain. Each row in your database contains the name of the store, its geographic location (a latitude and a longitude) and some additional...
HTML::GMap can be used to view data cumulatively using pie charts as well. For example, let's say that you have a database of physicians. Each row in your database contains the name of the physician, his/her geographic location (a latitude and a long...
=head1 DESIGN
The setup described above require two types of server-side functionality. The first one generates the initial HTML page. A second functionality is needed to respond to client requests initiated by dragging the map. The HTML::GMap module combines thes...
( run in 0.363 second using v1.01-cache-2.11-cpan-49f99fa48dc )