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(53.814165,-3.053514), 12); // 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.555 exclusion.robots: 0.018 exclusion.robots.policy: 0.009 esindex: 0.011 cdx.remote: 6.875 LoadShardBlock: 170.834 (3) PetaboxLoader3.datanode: 150.529 (5) PetaboxLoader3.resolve: 374.155 (3) load_resource: 470.417 (2) */