title: jQuery & google Map JSON
body: <p>I am having a small issue with my code it seems to stop at 10 listings in the JSON file</p>
  
  <p>and the JSON file comes back with 300+ records would someone please tell me where I have gone wrong</p>
  
  <p>DEMO
  <a href="http://realcashback.com.au/development/maps.php" rel="nofollow">http://realcashback.com.au/development/maps.php</a></p>
  
  <pre><code>    var map;
  var businessaddress;
  var marker;
  
  function initialize() {
     var myOptions = {
          zoom: 1,
          center: new google.maps.LatLng(-37.810013, 144.962683),
          mapTypeId: google.maps.MapTypeId.ROADMAP
      };
          map = new google.maps.Map(document.getElementById('map_canvas'),
              myOptions);
  
      getlocations();
  }
  
  google.maps.event.addDomListener(window, 'load', initialize);
  
  
  function getlocations(){
      $.getJSON('http://realcashback.com.au/development/system/classes/core.php?task=listmyleads', function(data) {
  
            $.each(data, function(i, obj) {
              businessname = obj.TradingName;
              if(!obj.suburb)
              {
              businessaddress = obj.street+", "+obj.suburb+" "+obj.state+" "+obj.postcode;
  
              showAddress(businessaddress,businessname);
  
              }
            });
  
      });
  }
  
  
  
  function showAddress(address,name) {
      //alert(address);
       var geocoder = new google.maps.Geocoder();
          geocoder.geocode({'address': address}, function(results, status) {
            if(status == google.maps.GeocoderStatus.OK) {
              latlngCity = results[0].geometry.location;
             // alert(latlngCity);
              marker = new google.maps.Marker({
              position: latlngCity,
                  title:name
              });
  
              // To add the marker to the map, call setMap();
              marker.setMap(map);
           }
      });
  
  }
  </code></pre>