Google Maps display KML data

Go To StackoverFlow.com

0

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: https://developers.google.com/fusiontables/docs/samples/custom_markers

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('https://developers.google.com/fusiontables/docs/samples/images/fusion_tables-32.png')
 });

Any help is much appreciated!

Thanks!

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


0



0

I came across this line: https://developers.google.com/fusiontables/docs/samples/change_infowindow_content

It answered my question!

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