title: Leaflet will not display my marker, "TypeError: t is null"
body: <p>I am trying to display a marker on my Leaflet map. This gives me the following error: TypeError: t is null</p>
  
  <p>PHP code which uses Google Maps API to fetch co-ordinates:</p>
  
  <pre><code>&lt;?php
  if (isset($_POST["checkAddress"])) { //Checks if action value exists
      $checkAddress = $_POST["checkAddress"];
      $plus = str_replace(" ", "+", $checkAddress);
      $json = file_get_contents('https://maps.googleapis.com/maps/api/geocode/json?address=' . $plus . '&amp;key=KEY');
      $obj = json_decode($json);
      $mapLat = $obj-&gt;results[0]-&gt;geometry-&gt;location-&gt;lat;
      $mapLng = $obj-&gt;results[0]-&gt;geometry-&gt;location-&gt;lng;
      $coords = ('' . $mapLat . ', ' . $mapLng . '');
      echo $coords;
  }
  ?&gt;
  </code></pre>
  
  <p>jQuery which runs the PHP script and should display the co-ordinates on the Leaflet map:</p>
  
  <pre><code>$(document).ready(function() {
  $("#button").click(function(){
      $.ajax({
          url: "geo.php",
          method: "POST",
          data: {
           checkAddress: $("#largetxt").val()
          },
          success: function(response){
           console.log(response);
           var marker = L.marker([response]).addTo(map);
          }
      });
  });
  });
  </code></pre>