googlemaps-v3-utility-library
Version:
Google Maps API V3 Utility Library
37 lines (36 loc) • 1.52 kB
HTML
<html>
<head>
<!-- meta name="viewport" content="initial-scale=1.0, user-scalable=no" / -->
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<title>Layer Visibility</title>
<script type="text/javascript">
//copy from http://gmaps-samples.googlecode.com/svn/trunk/versionchecker.html?v=2.86
function getURLParam(name) {
var regexS = "[\\?&]" + name + "=([^&#]*)";
var regex = new RegExp(regexS);
var results = regex.exec(window.location.href);
return (results === null ? "" : decodeURIComponent(results[1]));
}
var gmaps_v = getURLParam('v');
if (gmaps_v) gmaps_v = '&v='+gmaps_v;
var script = '<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false' + gmaps_v + '"></' + 'script>';
document.write(script);
</script>
<script type="text/javascript" src="layervis_compiled.js">
</script>
</head>
<body style="margin:0px; padding:0px;">
<table>
<tr>
<td valign="top">
<div id="toc" style="width:130px;">
</div>
</td>
<td>
<div id="map_canvas" style="width:800px; height:400px; border:1px solid #000;">
</div>
</td>
</tr>
</table>
</body>
</html>