title: Google maps api - add a kml layer to a map
body: <p>I've been playing around with the google maps api through javascript (I'm also new to javascript).
  I've experimented with adding info windows and markers to the map by following the api examples.</p>
  
  <p>What I want to do is overlay a KML file onto a map of Ireland - and I searched the fusion tables for  the KML file contains the information for the borders of the counties of Ireland.</p>
  
  <p>The kml file came from a fusion table here:
  <a href="http://www.google.com/fusiontables/DataSource?dsrcid=935280&amp;search=ireland+counties&amp;cd=0" rel="nofollow">http://www.google.com/fusiontables/DataSource?dsrcid=935280&amp;search=ireland+counties&amp;cd=0</a></p>
  
  <p>I exported it to a kml file and uploaded it to a public site (see javascript - I'm not able to post more than 2 links)</p>
  
  <p>I'm trying to load the kml file in the link below - that map I've selected appears but the KML overlay does not.
  <a href="http://songsaboutsuperheroes.com/index.html" rel="nofollow">http://songsaboutsuperheroes.com/index.html</a></p>
  
  <p>I've tried using a link to the fusion table ID and had no luck with that.
  I've also tried to use the KML Network link and had no luck with that.</p>
  
  <p>So I'm  trying to load the KML file directly like I've seen in tutorials.
  Can anyone point me in the right direction - I'm not sure what I'm doing wrong - thanks in advance! </p>
  
  <p>Here is the Javascript I'm using: </p>
  
  <pre><code>  function initialize() {
  
      var latlng = new google.maps.LatLng(53.36942,-6.378288);
  
      var myOptions = {
                          zoom: 7 ,
                          center: latlng,
                          mapTypeId: google.maps.MapTypeId.ROADMAP
                      };
  
  
      var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);                       
  
  
    var myLayer = new google.maps.KmlLayer(
         'http://songsaboutsuperheroes.com/Ireland_Counties.kml');
    myLayer.setMap(map);
   }
  </code></pre>