function LocateTwitter(query_screen_name) { _IG_FetchContent('http://twitter.com/users/show/' + query_screen_name + '.json', function (responseText) { var map = new GMap2(); var myRet = eval('(' + responseText+ ')'); var txt = ""; txt += "
"; txt += "screen name : " + myRet .screen_name + "
"; txt += "name : " + myRet .name + "
"; txt += "location : " + myRet .location + "
"; if (myRet.status) { txt += "" + myRet .status.text + "
"; } txt += "
"; var pos = myRet.location.match(/(\-?\d+\.\d+),[ ]*(\-?\d+\.\d+)/); if (pos) { var point = new GLatLng(parseFloat(pos[1]),parseFloat(pos[2])); map.setCenter(point, 14); //map.addOverlay(new GMarker(point)); map.openInfoWindowHtml(point, txt ); } else { var gc = new GClientGeocoder(); gc.getLatLngAsync(myRet.location, function(point) { if (point) { map.setCenter(point, 10); map.openInfoWindowHtml(point, txt); } }); } },{ refreshInterval: 60 }); }

Twitter Screen Name

]]>