Blank Page Google places

I have a question about blank page. Why it doesnt work?

<script>
    var map;
    var service;
    var infowindow;

    function initialize() {
    var pyrmont = new google.maps.LatLng(-33.8665433,151.1956316);

     map = new google.maps.Map(document.getElementById('map'), {
     center: pyrmont,
     zoom: 15
     });

    var request = {
     location: pyrmont,
     radius: '500',
     type: ['restaurant']
     };

     service = new google.maps.places.PlacesService(map);
     service.nearbySearch(request, callback);
    }

    function callback(results, status) {
     if (status == google.maps.places.PlacesServiceStatus.OK) {
     for (var i = 0; i < results.length; i++) {
     var place = results[i];
     createMarker(results[i]);
         }
      }
    }
</script>
<style>

     #map {
         height: 100%;
     }

     html, body {
         height: 100%;
         margin: 0;
         padding: 0;
     }
</style>





Sign In or Register to comment.