Unless stated otherwise, code available for viewing through this tool is dedicated to the public domain. If you have any questions, drop me a line.
<?php include '../../wp-config.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Selecting Data Source</title>
<script type="text/javascript">
<?
if (isset($_GET['ll'])) {
list($lat, $lng) = explode(',', $_GET['ll']);
}
if (isset($_GET['z'])) {
$zoom = $_GET['z'];
}
if (!is_numeric($lat)) $lat = 38;
if (!is_numeric($lng)) $lng = -95;
if (!is_numeric($zoom)) $zoom = 4;
?>
var centerLatitude = <?= $lat ?>;
var centerLongitude = <?= $lng ?>;
var startZoom = <?= $zoom ?>;
</script>
<script src="http://maps.google.com/maps?file=api&v=2.62&key=<?= MAP_KEY ?>" type="text/javascript"></script>
<script src="map_functions.js" type="text/javascript"></script>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body class="nosidebar">
<div id="toolbar">
<h1>Data Overlay Selection</h1>
<ul id="options">
<li><a href="http://googlemapsbook.com/2006/09/21/gmaps-tiles-api/">« Back to Article</a></li>
<li><a href="http://googlemapsbook.com">Our Book</a></li>
<li><a href="http://uwmike.com">uwMike.com</a></li>
<li id="permalink"><a id="permalink-link" href="#">Permalink</a></li>
</ul>
</div>
<div id="content">
<div id="map-wrapper">
<div id="map"></div>
</div>
<div id="sidebar">
<ul id="sidebar-list">
</ul>
</div>
</div>
</body>
</html>