KML file created with MyMaps doesn't work
Date: Jul 3, 2007
Views: 2374
Question:
I have added some points on a google map (my maps), saved it and then downloaded the kml with the link on the top right of google my maps.
When used in conjunction with gmap, using an example and changing the name of the kml to my one.
The kml downloaded from my maps is very simple when inspected and simply has some sort of http link and nothing like the kml xml codes available in the examples. Why?
Answer:
| wyawu6fu (AFC space explorer) |
What you need to do: 1) You need to open the KML file using a text editor. (or another program that is able to read XML / KML) 2) After opening you should see something like this: Code: <?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://earth.google.com/kml/2.1"> <Document> <name>SDH_Locaties</name> <description><![CDATA[SDH Holding Locaties]]></description> <NetworkLink> <Url> <name>SDH_Locaties</name> <href>http://maps.google.com/maps/ms?ie=UTF8&hl=en&msa=0&msid=110213718696612827906.00000112b8acab733ad48&output=kml </href> </Url> </NetworkLink> </Document> </km> 3) Manually remove the "&" and replace it with "&" (ignore the "). Alternatively you could use a 'find & replace' function inside your texteditor. 4) Between the Code: http://maps.google.com/maps/ms?ie=UTF8&hl=en&msa=0&msid=110213718696612827906.00000112b8acab733ad48&output=kml 5) Copy this new link and paste it into your adres bar (internet browser of course) and press enter. It will automatically download the KML file with formating. You can alter this later on, again in a texteditor. |
