title: google map infowindow content from partial view
body: <p>I want to display content into InfoWindow from controller action (return partial view). When i click Mraker it shows 'Undefined' into infowindow.</p>
  
  <p>How to render partial view into google map InfoWindow?</p>
  
  <pre><code>    function AjaxDisplayString() {
          var addressData;
          var testData;
          $.ajax({
              type: "GET",
              url: '/Account/Tooltip',
             dataType: "HTML",
              contentType: 'application/json',
              traditional: true,
              data: addressData,
              success: function (result) {
                  debugger;
                  return result                   
              },
              error: function (arg) {
                  alert("Error");
              }
  
          });
  
      }
  
      var infowindow = new google.maps.InfoWindow({
          content: "&lt;div&gt;"+ AjaxDisplayString() + "&lt;/div&gt;"
  
      });
  
  
      google.maps.event.addListener(marker, 'click', function () {
          infowindow.open(map, marker);
      });
  </code></pre>