How to replace myParser.parse('path/to/data.kml') into variable that contain kml file like this. https://github.com/geocodezip/geoxml3
var myParser = new geoXML3.parser({map: map});
myParser.parse('/path/to/data.kml');
Like this:
var result = "<?xml version="1.0" encoding="UTF-8"?> ... </kml>'"
var myParser = new geoXML3.parser({map: map});
myParser.parse(result);
geoXML3
library containsparseKmlString
function to parse KML from a string.Example