Am trying to use google.loader.ClientLocation along with the maps api to get the location of the visitor and center a map on it. The following is working fine for me (on Safari, Firefox and Chrome), but a friend I got to test it (in Safari and Firefox) just sees a white box with the Google logo.
<script type="text/javascript" src="http://www.google.com/jsapi?key=ABQIAAAAeeU0y7tMNMOQPIMM7JX_kBTi_4TQeACPrDzoKWJhUsxMCp6ZkhTVx1nhgtAcF5rF3q1HjgTQs39tgg"></script>
<script type="text/javascript">
google.load("maps", "2");
</script>
<script type="text/javascript">
function initialize() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("local_map"));
map.setMapType(G_PHYSICAL_MAP);
map.setCenter(new GLatLng(google.loader.ClientLocation.latitude, google.loader.ClientLocation.longitude), 15);
// map.setCenter(new GLatLng(54.5975, -5.920278), 15);
map.setUIToDefault();
}
</script>
Any ideas what could be going wrong? The site is at http://www.chris-armstrong.com/ticktalk (the map is near the bottom)