Esempio n. 1
0
  			setTimeout( function(){
  			      window.location.href='getQuestion.php';
  			}  , 7000 );
  			<?php 
}
?>

  			google.maps.event.addDomListener(window, 'load', initialize);


  		}

function initialize() {

  var locations = <?php 
echo $allAnswers->getLocations();
?>
;

  var myLatlng = new google.maps.LatLng(<?php 
echo $allAnswers->correctAns->location->lat;
?>
,<?php 
echo $allAnswers->correctAns->location->longg;
?>
);//ll.lat(),ll.lng());
  var mapOptions = {
    zoom: 4,
        mapTypeControl: false,
    streetViewControl: false,
center: myLatlng