|
How do I import a KML data file into Google Maps?We hired a company to produce a Google Maps data file so we could produce a custom map of all our business office locations across the United States and they supplied us with a XML data file. I have no idea what to do next. Help! I'm surprised that they haven't offered you even rudimentary directions, but it's okay, I've got your geoback. :-) First off, though, I hope that it's actually a KML map file that's written in XML compliant language rather than an XML file, per se. KML is "Keyhole Markup Language" and it's named after the company that created the geographic specific language. Anyway, you probably don't care about that! Your first step is to go to Google Maps and make sure you're logged in to your Google account. if you don't have one, create one. How to tell? On the top right it'll either say "Sign in" or it'll show your email address if you are logged in. Once you are logged in properly, you'll see the following: ![]() Click on "My Maps" and you'll see a list of maps you've already created (if any) and the all-important "Create new map" link: ![]() Choose that (no surprise!) and it'll give you an area where you can name your map, add a description and, when you're ready, an "Import" link: ![]() When you choose to import a Google Maps data file, it'll give you the option of specifying the map's location online with a URL or finding one that you want to upload from your computer: ![]() Click on "Choose file" and it'll pop up a standard choose file dialog window (this is on a Mac, but a Windows PC works the same): ![]() Once I've picked the file I want to upload (a file that ends with ".kml") I click on "Choose" and now I'm back to the Google Maps dialog window again, but this time the file name shows up: ![]() That's good. Click on "Upload from File" and, depending on how big the file is, it'll complete in a few seconds or a minute or more, with the next action being it displaying you a map with all the data points plotted: ![]() On the left side underneath the fields where you can enter a title and description for the map it now shows a list of the imported data points with any descriptive material included in the KML file: ![]() Last step. Find the "Done" button and click it and you have a public custom Google Maps file with all the information easily accessible: ![]() I hope that gives you all the information you need to get this working! In a different set of blog entries I'll explain how to turn addresses into Latitude/Longitude information, then you can pour that manually into a KML file, as I'll also explain. Stay tuned for that!
Categorized:
CGI Scripts and Web Site Programming
(Article 8846,
Written by Dave Taylor)
Tagged: custom maps, geocaching, geomapping, google maps Previous: What is Google Voice? Next: Prince of Persia Walkthrough II: Defeating the Hunter Subscribe!
Hey Dave, thanks for the easy step by step, it is just what I was looking for. Posted by: John Everett at July 18, 2009 6:49 AMthis is great, but, how do i import to a gmap, bulk addresses that have no longitude or latitude, but only the plain mailing address ?? Thanks M8! Very usefull! Posted by: pegazoo at January 29, 2010 6:34 PMAdolfo, check this article out: http://www.askdavetaylor.com/how_to_convert_map_street_addresses_latitude_longitude.html Hope it helps you out! Posted by: Dave Taylor at January 29, 2010 9:38 PMPerfect. Thanks for posting this. Posted by: Graham at April 15, 2010 9:43 AMThis is a good write-up and it works when the file I import has a Placemark with coordinate data. Unfortunately, it doesn't work for me when the content of the KML file is a NetworkLink element, which indirectly points to a KML file with actual Placemark coordinates in it. Do you know of any specific circumstances which will cause it to fail? [there's no kind of error message - it just imports nothing at all and then waits for ever]. Posted by: Robin Hillyard at April 20, 2010 1:25 PMVery helpful. It worked once, but when I tried again, it seemed only to import part of the KML file. The entire file is 132KB, and I have imported completely into Google Earth. There are about 268 intersections in alphabetical order that I want to map, and it seems to only import through the Ls. Suggestions would be appreciated. Posted by: Alex Chen at July 19, 2010 11:24 AMThank you for this post, very helpful and saved me a lot of time. Thanks Dave it was very helpful Posted by: carlos at April 12, 2011 9:46 AMGood work. This tutorial made it easy. Just had to convert the shp file in arcmap to a kmz. (That's in the arccatalog toolbox under conversion tools in arc 10) Posted by: Roland at June 9, 2011 10:56 AMThis is very good, finally I can relate between google earth and google maps ! I've searched for quite a while and found nothing so good as this! Very clear.. Congrats. I only have a question is it possible to put a link in the markers? instead of the ballon when we click? Thank you. this is excellent. very clearly explained. Thanks Dave, this really solved my problem. I'm trying to import my picasa web album maps (KML) to google maps. I read the guide from maps.google & mapmaker.google without failed and end up here. *sigh* Posted by: Nuar Haruha at September 24, 2011 10:29 PMThx, nice Turt Another way is to import the KML file with this tool http://www.geocontext.org/publ/2010/04/profiler/en/ Posted by: comephorus at September 29, 2011 9:55 AMWoW! Cool. I feel silly not having seen the import knob... my radar is usually pretty good I searched around and most of the links/advice predates the evolution of the opposable thumb and basically say it can't easily be done One supercool tool I used to convert from survey coordinates to KMZ is at: http://www.gpsvisualizer.com/map_input?form=googleearth thanks!! I have something to say, now that you mention it, but ...
I do have a comment, now that you mention it!
|
Recommended
Recent Entries
Search
I Need Help!
Apple iPad Help
Articles and Reviews Auctions and Online Shopping Blogs and RSS Feeds Building Web Site Traffic Business and Management CGI Scripts and Web Site Programming Computer and Internet Basics d) None of the Above Facebook Help Google Plus Help HTML and CSS Industry News and Trade Shows iPhone and Cell Phone Help iPod, Sony PSP and MP3 Player Help Mac OS X Help Pay Per Click (PPC) Advertising Search Engine Optimization (SEO) Shell Script Programming Tech Support Video Help The Writing Business Twitter, LinkedIn and Social Network Help Unix and Linux Help Video Game Tips and Help Windows PC Help WordPress Help |