-
Notifications
You must be signed in to change notification settings - Fork 0
/
sidebar2.html
79 lines (69 loc) · 2.57 KB
/
sidebar2.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<meta http-equiv="cache-control" content="no-cache" />
<SCRIPT language="JavaScript">
<!--
var browserName=navigator.appName;
if (browserName=="Netscape")
{
document.writeln("<link rel='stylesheet' media='all' type='text/css' href='http://mncppcapps.org/planning/TOD/style/box.css' />");
}
else
{
if (browserName=="Microsoft Internet Explorer")
{
document.writeln("<link rel='stylesheet' media='all' type='text/css' href='http://mncppcapps.org/planning/TOD/style/box1.css' />");
}
else
{
document.writeln("<link rel='stylesheet' media='all' type='text/css' href='http://mncppcapps.org/planning/TOD/style/box1.css' />");
}
}
//-->
</SCRIPT>
<script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAmTmNQB4qTYq1j5fYmw5zfBRGlbbK0S78Q_3qGXe9YYVtM3tm4hTAJYu-aoxnfw2LnNJgszcnKnz-aw" type="text/javascript"></script>
<link rel="stylesheet" media="all" type="text/css" href="http://mncppcapps.org/planning/TOD/gmap.css" />
<script src="http://mncppcapps.org/planning/TOD/geoxml.js" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
var gml, mmap;
function initMap() {
mmap=new GMap2(document.getElementById("map"),{draggableCursor: 'crosshair', draggingCursor: 'move'});
//mmap.setCenter(new GLatLng(38.928665,-76.926137),12);
//mmap.setZoom(12);
mmap.setCenter(new GLatLng(38.928665,-76.926137),11);
mmap.addControl(new GLargeMapControl());
mmap.addControl(new GMapTypeControl());
mmap.addControl(new GOverviewMapControl());
mmap.setMapType(G_PHYSICAL_MAP);
//mmap.setZoom(13);
//alert(map.getZoom());
//mmap.setZoom(11); //this looks a high enough zoom value
//mmap.fitBounds(bounds);
//mmap.setZoom((mmap.getBoundsZoomLevel(bounds)));
//mmap.setCenter(bounds.getCenter());
mmap.enableScrollWheelZoom();
mmap.enableDoubleClickZoom();
mmap.enableContinuousZoom();
gml = new GeoXml("gml", mmap, "https://raw.githubusercontent.com/Mandyli100/TOD/master/TOD.kml", {sidebarid:"the_side_bar",iwwidth:250});
gml.parse();
}
//]]>
</script>
</head>
<body onLoad="initMap()" onUnload="GUnload()">
<table border=0 cellpadding="0" cellspacing="0">
<tr>
<td valign="top" width="240">
<div class="box250">
<h3><center>Metro Stations In the County</center></h3><ul>
<div id="the_side_bar" style="overflow:left; white-space:nowrap;" align="left">
</div></ul>
</div>
</td>
<td> </td>
<td valign="top" align="right">
<div id="map" style="width: 600px; height: 520px"></div>
</td>
</tr>
</table>
</body>
</html>