I have a KML in the form of a string. Actually I call a service from my GWT project and the service returns a KML file in the form of a string. How can I present this KML on my map? All I have is a string. Should I first parse it or can I create a KML layer from this string?
//I’m using google maps v3 api for GWT
I thought you were working in JavaScript, but since you are working in Java, have you taken a look at the JAK Java API for KML? It uses JAXB under the covers, but it provides an
unmarshalfunction that accepts either a file or aString. There is an article describing the library on TheServerSide.com and another article on Java.net.And finally, there is some good and detailed documentation available at Micromata’s JAK site. Hope this helps –