I dont have great knowledge of this, but ive tried, the following code isnt working if anyone knows why or how to fix it please heeelp!! ty
Code:var myPano; function initialize() { panoramaOptions = { latlng:fenwayPark }; var address = "<? print(mysql_result($result, 0, "address") . " " . mysql_result($result, 0, "address2") . ", " . mysql_result($result, 0, "city") . " " . mysql_result($result, 0, "county") . ", " . mysql_result($result, 0, "postcode")); ?>"; myPano = new GStreetviewPanorama(document.getElementById("streetview"), panoramaOptions); GEvent.addListener(myPano, "error", handleNoFlash); geocoder = new GClientGeocoder(); if (geocoder) { geocoder.getLatLng( address, function(point) { if (!point) { alert(address + " cannot be found, try revising the address."); } else { streetview.setCenter(point, 15); var fenwayPark = new GLatLng(point); streetview.addOverlay(marker); streetview.addControl(new GStreetviewPanorama()); } function handleNoFlash(errorCode) { if (errorCode == FLASH_UNAVAILABLE) { alert("Error: Flash doesn't appear to be supported by your browser"); return; } } </script>
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks