var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); //let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); //' + name + '<\/a>
'; return marker; } // This function picks up the click and opens the corresponding info window function myclick(i) { GEvent.trigger(gmarkers[i], "click"); } // create the map var map = new GMap2(document.getElementById("map")); map.addControl(new GLargeMapControl()); map.addControl(new GMapTypeControl()); map.setCenter(new GLatLng(52.236874,-0.897391), 13); // Read the data from .xml GDownloadUrl("../includes/constants.map-data.php", function(doc) { var xmlDoc = GXml.parse(doc); var markers = xmlDoc.documentElement.getElementsByTagName("marker"); for (var i = 0; i < markers.length; i++) { // obtain the attribues of each marker var lat = parseFloat(markers[i].getAttribute("lat")); var lng = parseFloat(markers[i].getAttribute("lng")); var point = new GLatLng(lat,lng); var casinoname = markers[i].getAttribute("casino_name"); var url = markers[i].getAttribute("url"); var address = markers[i].getAttribute("address"); var label = markers[i].getAttribute("label"); // make the html window information var htmlString = '

' + casinoname + '
' + address + '

'; // create the marker var marker = createMarker(point,label,htmlString,url); map.addOverlay(marker); } // put the assembled side_bar_html contents into the side_bar div // document.getElementById("side_bar").innerHTML = side_bar_html; }); } else { alert("Sorry, the Google Maps API is not compatible with this browser"); } //]]> } /* playback timings (ms): captures_list: 0.502 exclusion.robots: 0.016 exclusion.robots.policy: 0.008 esindex: 0.009 cdx.remote: 6.656 LoadShardBlock: 198.876 (3) PetaboxLoader3.datanode: 244.833 (5) load_resource: 215.3 (2) PetaboxLoader3.resolve: 117.488 (2) */