Hi, I'm stuck with a problem with loading a KML file into maps/earth via GGeoXml. The kml file was created in GoogleEarth. It is accessible through my link: http://www.portal-rowerowy.pl/file.php?id=417
wget (on linux) shows mimetype of this file while downloading: HTTP request sent, awaiting response... 200 OK Length: 77128 (75K) [application/vnd.google-earth.kml] Despite it's supposed to be alright it can't be displayed on map: Please try paste this code into google playground to check the problem: http://code.google.com/apis/ajax/playground/?exp=maps#geoxml_kml var map; var geoXml; var toggleState = 1; function initialize() { if (GBrowserIsCompatible()) { geoXml = new GGeoXml("http://www.portal-rowerowy.pl/file.php? id=417"); map = new GMap2(document.getElementById("map_canvas")); map.setCenter(new GLatLng(52.42228990140251, 21.0822035425683), 8); map.addControl(new GLargeMapControl()); map.addControl(new GLargeMapControl()); map.addOverlay(geoXml); } } function toggleMyKml() { if (toggleState == 1) { map.removeOverlay(geoXml); toggleState = 0; } else { map.addOverlay(geoXml); toggleState = 1; } } function toggleMyKml() { if (toggleState == 1) { map.removeOverlay(geoXml); toggleState = 0; } else { map.addOverlay(geoXml); toggleState = 1; } } The link and the file work good when it's used in this playground: http://code.google.com/apis/ajax/playground/?exp=maps#fetch_good_kml Why is that happening ? -- 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.
