i am having problems while fetching data from kml file.
geoXml.parse("http://localhost/maps/phpmysqlajax_genkml.kml");
error in console is
Could not convert JavaScript argument arg 0 [nsIDOMCanvasRenderingContext2D.drawImage [Break On This Error] (92 out of range 43)
and what if i send a php file instead
geoXml.parse("http://localhost/maps/phpmysqlajax_genkml.php");
this file sending KML as output.
geoXml and KmlOverlay (in version 3 of the API) both require a KML file or GeoRSS file to be hosted on a server that is available to Google’s servers to go and parse. localhost isn’t. This is because you’re not sending the KML to Google’s servers, but rather telling them to fetch it.