Thursday, 5 December 2019

kml - Displaying local file in Google Maps?


How can I get a KML/KMZ file to display on Google Maps without a public facing web server?



Answer



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 public 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.


Example:


Harvey Mountain Hike:



http://maps.google.com/maps?q=http://dl.dropbox.com/u/359140/KML/HarveyMountainHike.kmz


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...