|
Server : Apache/2.4.62 System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64 User : www ( 80) PHP Version : 8.3.8 Disable Function : NONE Directory : /domains/mandarintools/maps/ |
Upload File : |
<!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" xmlns:v="urn:schemas-microsoft-com:vml"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex,nofollow"><title>Buffalo Ward Membership</title>
<style type="text/css">
v\:* {
behavior:url(#default#VML);
}
</style>
<script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAA52fGx2oAPK6PeDjhvxqHohQYyILyYZagvPvZd0lUZXY9NamzDhSQLjtrh9JphHkGEpR9jEV5qbksTg" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
var markers;
function createMarker7th(point, html) {
var marker = new GMarker(point);
// Show this marker's index in the info window when it is clicked
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowHtml(html);
});
return marker;
}
function onLoad() {
// Using XML and Asynchronous RPC ("AJAX") with Maps
//
// In this example, we download a static file ("data.xml") that contains a
// list of lat/lng coordinates in XML. When the download completes, we parse
// the XML and create a marker at each of those lat/lngs.
// Center the map on Pittsburgh
var map = new GMap(document.getElementById("map"));
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
map.centerAndZoom(new GPoint(-78.722377, 43.001791), 5);
/* var polyline = new GPolyline([
new GLatLng(43.08531145139676, -78.69712829589844),
new GLatLng(43.03357524347831, -78.69704246520996),
new GLatLng(43.033951671996135, -78.70038986206055),
new GLatLng(43.03439083568202, -78.7031364440918),
new GLatLng(43.0345790477282, -78.73300552368164),
new GLatLng(43.034892733189096, -78.74794006347656),
new GLatLng(43.034955470088875, -78.7679386138916),
new GLatLng(43.04154248763901, -78.76914024353027),
new GLatLng(43.04844241425683, -78.76999855041504),
new GLatLng(43.07145746436743, -78.77102851867676),
new GLatLng(43.070955866009115, -78.77351760864258),
new GLatLng(43.06901213359645, -78.77652168273926),
new GLatLng(43.06851051522569, -78.77789497375488),
new GLatLng(43.06731915514257, -78.78742218017578),
new GLatLng(43.066629409774166, -78.79454612731934),
new GLatLng(43.067005635482694, -78.80064010620117),
new GLatLng(43.062051812033964, -78.80810737609863),
new GLatLng(43.057599300039854, -78.80836486816406),
new GLatLng(43.05540428077992, -78.81051063537598),
new GLatLng(43.05408723150939, -78.81402969360352),
new GLatLng(43.05233112181524, -78.82699012756348),
new GLatLng(43.036272930168266, -78.82312774658203),
new GLatLng(43.031818546532605, -78.82226943969727),
new GLatLng(43.004395010026684, -78.8225269317627),
new GLatLng(43.00320240452471, -78.81634712219238),
new GLatLng(42.99253069344046, -78.80141258239746),
new GLatLng(42.984871029070874, -78.79437446594238),
new GLatLng(42.97896866941553, -78.78364562988281),
new GLatLng(42.96791591914058, -78.76991271972656),
new GLatLng(42.96527803743259, -78.76785278320312),
new GLatLng(42.95202411057306, -78.76596450805664),
new GLatLng(42.95196128895659, -78.75729560852051),
new GLatLng(42.95196128895659, -78.74236106872559),
new GLatLng(42.95108177959288, -78.73618125915527),
new GLatLng(42.95095613437206, -78.7057113647461),
new GLatLng(42.9483803508204, -78.68193626403809),
new GLatLng(42.947437964052476, -78.67189407348633),
new GLatLng(42.94787774633963, -78.64108085632324),
new GLatLng(42.95064202019789, -78.6086368560791),
new GLatLng(42.954536922650256, -78.59318733215332),
new GLatLng(42.95748934573817, -78.5767936706543), //
new GLatLng(43.089949992666654, -78.5767936706543),
new GLatLng(43.08926154643519, -78.58340263366699),
new GLatLng(43.08512443952179, -78.58563423156738),
new GLatLng(43.08261696601133, -78.5840892791748),
new GLatLng(43.07904363893171, -78.58606338500977),
new GLatLng(43.07710016302757, -78.58863830566406),
new GLatLng(43.07572088466758, -78.59456062316895),
new GLatLng(43.07672399928101, -78.60074043273926),
new GLatLng(43.08926154643519, -78.62005233764648),
new GLatLng(43.094526551117326, -78.63069534301758),
new GLatLng(43.09634412620188, -78.63816261291504),
new GLatLng(43.09860035125542, -78.64099502563477),
new GLatLng(43.09578005694882, -78.63627433776855),
new GLatLng(43.09020175903812, -78.6361026763916),
new GLatLng(43.08656619031742, -78.64408493041992),
new GLatLng(43.08098705319353, -78.6456298828125),
new GLatLng(43.0801720805241, -78.64760398864746),
new GLatLng(43.085061753934866, -78.66150856018066),
new GLatLng(43.08456026693012, -78.66966247558594),
new GLatLng(43.08280503008465, -78.67678642272949),
new GLatLng(43.07992131752181, -78.68176460266113),
new GLatLng(43.080548223103186, -78.68451118469238),
new GLatLng(43.08512443952179, -78.6892318725586),
new GLatLng(43.08587666156178, -78.69086265563965),
// end point from beginning
new GLatLng(43.08531145139676, -78.69712829589844)
//new GLatLng(40.45139308182895,-80.03345354550176),
//new GLatLng(40.45641037135039,-80.03632727231333),
//new GLatLng(40.46418825754913,-80.03966757077143),
//new GLatLng(40.46931486380376,-80.04418839006496),
//new GLatLng(40.4720212462579,-80.04725198864414),
//new GLatLng(40.46965406593235,-80.05004046568634),
//new GLatLng(40.465827875365,-80.05074560166293),
//new GLatLng(40.46500242984423,-80.05355802866369)
],
"#FF0000",
10);
map.addOverlay(polyline);
*/
// Download the data in data.xml and load it on the map. The format we
// expect is:
// <markers>
// <marker lat="37.441" lng="-122.141"/>
// <marker lat="37.322" lng="-121.213"/>
// </markers>
var namelist = "<table>";
var request = GXmlHttp.create();
request.open("GET", "BuffaloWard200903.xml", true);
request.onreadystatechange = function() {
if (request.readyState == 4) {
var xmlDoc = request.responseXML;
var markerxml = xmlDoc.documentElement.getElementsByTagName("marker");
markers = new Array(markerxml.length);
for (var i = 0; i < markerxml.length; i++) {
var point = new GPoint(parseFloat(markerxml[i].getAttribute("lng")),
parseFloat(markerxml[i].getAttribute("lat")));
var mname = markerxml[i].getAttribute("name");
var address = markerxml[i].getAttribute("address");
var phone = markerxml[i].getAttribute("phone");
//var unit = markerxml[i].getAttribute("unit");
var html = mname + "<br>" + address + "<br>" + phone;
var marker; // = createMarkerActive(point, html);
marker = createMarker7th(point, html);
markers[i] = marker;
namelist +="<tr>\n";
namelist += "<td><A onclick='window.scroll(0,0); markers[" + i +
"].openInfoWindowHtml(\"" + html + "\");'>" +
" "+ mname + " " + "</a></td>";
namelist += "</tr>\n";
if (i+1 == markerxml.length) {
document.getElementById("message").innerHTML = namelist;
}
map.addOverlay(marker);
}
namelist += "</table>";
}
}
request.send(null);
}
//]]>
</script></head>
<body onload="onLoad()">
<div id="map" style="width: 850px; height: 650px; position: relative; background-color: rgb(229, 227, 223);"></div>
<hr>
<div id="message"></div>
</body></html>