” and am already having a problem with the first chapter. Going over KML files and how they can be used to mark certain areas on a Google Map, the book gives an example of multiple points in Toronto. I followed the same example to try and mark a point in Yokosuka, Japan. When I view the Toronto example, it works fine. When I try my Yokosuka example, it just displays a point marker on a blank grey background; the map never loads.
I’ve tried both the Toronto KML file and my Yokosuka KML file on my server, and only Toronto works. I've checked the coordinates by manually searching for them in GMaps and Yokosuka comes up fine.
Here’s my KML file (also found
here):
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.google.com/earth/kml/2">
<Document>
<name>yokosuka.kml</name>
<Placemark>
<name>Yokosuka Japan</name>
<description>
This is my first KML file. Insert some random crap about Yokosuka.
</description>
<Point>
<coordinates>35.277647,139.665585</coordinates>
</Point>
</Placemark>
</Document>
</kml>
As you can see, it doesn’t show anything but a point with no map. You can see the Toronto example works though.
here.
Am I doing something wrong? Is there something wrong with GMaps in foreign countries? I really don’t want to give up this book after the first chapter, so please help me out here.
Thanks!
<kml xmlns="http://earth.google.com/kml/2.1">
posted by paulsc at 12:58 AM on June 30, 2007