title: Read KML From Database
body: <p>I'm actually struggeling with a problem handling some kml files with google map in my Javascript application.</p>
  
  <p>I wrote a method with that I'm reading a KML file from an URL or my local file system and storing the content as a String in a Database. Now i would like to activate layers that are stored in my db by clicking a button. Everything is fine up to here. </p>
  
  <p>In every example i can find they are only using the url-attribute of a KmlLayer by passing an url to a KML-File.</p>
  
  <p>like here:</p>
  
  <pre><code>    var ctaLayer = new google.maps.KmlLayer({
      url: 'http://googlemaps.github.io/js-v2-samples/ggeoxml/cta.kml',
      map: map
      });
  </code></pre>
  
  <p>But since my files are stored as Strings in my db I don't have an url to a file, only the content. I can't find a way to only pass the XML-String as content. 
  Somebody here who can help?</p>