How can I get a KML/KMZ file to display on Google Maps without a public facing web server?
I noticed you haven't marked this question as answered yet, so I thought I'd add a bit to what Jason Birch said (which I believe is the best answer on here so far).
To open a KML or KMZ file in Google Maps, I append the following prefix to an online link of the KML file: http://maps.google.com/maps?q=
Typically, I put the KML or KMZ in my dropbox, and then copy/paste the pulic link to the end of the above snippet. Then I can email that link to whom ever wants it, or I post it online somewhere. I've also used Google Docs to store the KML's, and a Links page on my website to distribute the links.
Harvey Mountain Hike: http://maps.google.com/maps?q=http://dl.dropbox.com/u/359140/KML/HarveyMountainHike.kmz
Is this for something that you want to have permanently available to others, or just for temporary viewing?
One of the tricks that I use quite often is to place the KML file in my public DropBox folder (find someone with an account to refer you; it will get both you and them an extra 250Mb) and then paste that url into Google Maps to visualize and share with others short-term.
In the longer term, you do have the option of creating a new Google "My Maps" map, and importing KML, KMZ or GeoRSS into that. Once done, you can share the resultant map using the standard My Maps tools.
You can also use Google Docs to store and share KML files with others. My recommended technique is to:
I wonder how long before Google allows interactive collaborative editing of KML documents via Google Docs? Now that would be cool...
You can upload a KML file to Google Maps:
Now you're done :)
The short answer is: you can't. Using a local file with the plain old Google Maps web application would violate the browser's sandboxing and same origin policy.
One option, however costly, is that you may be able to use Google Maps Premier to host the maps-x.js on your local filesystem along with the associated KML.
Another option is to use an existing public facing web server, like Google Sites.
Also, keep in mind that you may be able to use OpenLayers as an alternative to Google Maps Premier.
Click Import. You can import CSV, TSV, or XLSX files, My Maps, or spreadsheets from Google Drive. KML import is not currently supported.
protected by whuber♦ Mar 4 at 15:27
Thank you for your interest in this question.
Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.
Would you like to answer one of these unanswered questions instead?