I created a hello world program to load a local kml file (borrowed from google\'s docs):
var ctaLayer = new google.maps.KmlLayer(\"http://localhost:8080/kml/
This website, display-kml.appspot.com, requires that you copy/paste the entire KML file into the website. Alternatively, you can use Dropbox to host the KML file using your public folder. Within the public Dropbox folder, there is a right-click context menu that allows you to copy the URL.
Update:The appspot website has a history of being unstable. As of January 2019, the website appears to be working.
REFERENCES: