File indexing completed on 2025-01-05 04:25:44
0001 <html> 0002 <head> 0003 <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> 0004 <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> 0005 <style type="text/css"> 0006 html { height: 100% } 0007 body { height: 100%; margin: 0px; padding: 0px } 0008 #map_canvas { height: 100% } 0009 </style> 0010 <title>Upcoming Event Venue Location</title> 0011 <script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=false"></script> 0012 <script type="text/javascript"> 0013 var map; 0014 var markers = []; 0015 0016 function initialize() { 0017 var latitude = -34.397; 0018 var longitude = 150.644; 0019 var myLatlng = new google.maps.LatLng(latitude,longitude); 0020 var myOptions = { 0021 zoom: 8, 0022 center: myLatlng, 0023 draggable: true, 0024 mapTypeControl: true, 0025 scrollwheel: true, 0026 disableDefaultUI: true, 0027 navigationControl: true, 0028 scaleControl: true, 0029 mapTypeId: google.maps.MapTypeId.ROADMAP, 0030 mapTypeControlOptions: { 0031 style: google.maps.MapTypeControlStyle.DROPDOWN_MENU 0032 } 0033 }; 0034 map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); 0035 } 0036 0037 function centerAt(latitude, longitude) { 0038 myLatlng = new google.maps.LatLng(latitude,longitude); 0039 map.panTo(myLatlng); 0040 } 0041 0042 function addMarker(latitude, longitude, icon, info) { 0043 var marker = new google.maps.Marker({ 0044 position: new google.maps.LatLng(latitude,longitude), 0045 map: map, 0046 icon: icon 0047 }); 0048 var infowindow = new google.maps.InfoWindow({ 0049 content: info, 0050 maxWidth: 300 0051 }); 0052 google.maps.event.addListener(marker, 'click', function() { 0053 infowindow.open(map,marker); 0054 }); 0055 markers.push(marker); 0056 } 0057 0058 function removeMarker(latitude, longitude) { 0059 if (markers) { 0060 var pos = new google.maps.LatLng(latitude,longitude); 0061 for (var i=markers.length-1; i>=0; i--) { 0062 var markerPos = markers[i].getPosition(); 0063 if (pos.equals(markerPos)) { 0064 markers[i].setMap(null); 0065 markers.splice(i, 1); 0066 } 0067 } 0068 } 0069 } 0070 0071 function clearMarkers() { 0072 if (markers) { 0073 for (x in markers) { 0074 markers[x].setMap(null); 0075 } 0076 } 0077 markers.length = 0; 0078 } 0079 </script> 0080 </head> 0081 <body style="margin:0px; padding:0px;" onload="initialize()"> 0082 <div id="map_canvas" style="width:100%; height:100%"></div> 0083 </body> 0084 </html> 0085 <!-- 0086 vim:et:sw=2:sts=2:ts=2 0087 -->