Google Maps display KML data

Go To


I have KML string and I want to display that on a Google Map. Instead of a file, I have the string. This is because I have my KML data inside the Fusion Tables, and I need to make something similar to this:

I only have KML data, not coordinates, so I'm not sure how I would display that.

I tried this, but it didn't work:

var marker = new google.maps.Marker({
      map: map,
      position: '<polygon>....</polygon>',
      icon: new google.maps.MarkerImage('')

Any help is much appreciated!


2012-04-04 00:07
by Umm....



I came across this line:

It answered my question!

2012-04-04 16:02
by Umm....