So I'm using servlet which generates KML files, returned content is
set to application/vnd.google-earth.kml+xml, file content is valid
when displaying in http://display-kml.appspot.com.

My simple HTML is as follows :


<html>
    <head>

       <meta http-equiv="Content-Type" content="text/html;
charset=UTF-8">
       <meta name="viewport" content="initial-scale=1.0, user-
scalable=no" />
       <script type="text/javascript" src="http://maps.google.com/maps?
file=api&v=2&key=ABQIAAAADfMjzUVVj-
jHPfTo6CuXHhSo_LGzssskbWuBYueyM1fdxLdU4hRVS8TQhYymypIKPA_3Qg6D2-
d2Rg&sensor=false"></script>
       <script type="text/javascript">

    var map;
    var geoXml;

    function initialize() {
      if (GBrowserIsCompatible()) {
        geoXml = new GGeoXml("http://www.numbeo.com/common/
colorful_country.kml?indexToShow=getCpiIndex");
        map = new GMap2(document.getElementById("map_canvas"));
        map.setCenter(new GLatLng(15, 0), 2);
        map.setUIToDefault();
        map.addOverlay(geoXml);
      }
    }
        </script>

       <title>World Map of Consumer Price Index (CPI) for 2010</title>
    </head>

    <body onload="initialize()">
    <div id="map_canvas" style="width: 100%; height: 85%; vertical-
align:middle; border: 1px solid black;"></div>




This is what CURL said from my KML file :

$ curl -I 
http://www.numbeo.com/common/colorful_country.kml?indexToShow=getCpiIndex
HTTP/1.1 200 OK
X-Powered-By: Servlet/2.5
Server: Sun GlassFish Enterprise Server v2.1
Set-Cookie: JSESSIONID=2611b056f3f9c069488dc495a3f8; Path=/
Set-Cookie: LivingCost=9-51807-9-ip-89.216.151.118; Expires=Tue, 03-
May-2078 20:04:44 GMT
Content-Type: application/vnd.google-earth.kml+xml
Content-Length: 262573
Date: Thu, 15 Apr 2010 16:50:37 GMT


So, content is correct, mime type is correct, HTML/javascript is from
default example.. where is the problem? :)

Please help. Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to