Tuesday, September 7, 2010

KML-File does not refresh

HI,

I made a PHP-website with a GoogleMaps-Window and a kml-overlay.
Everything works fine, only the kml-File does not refresh after
uploading the updated file.

Is there any chance to get this file refreshed manual after the
upload?

function initialize() {
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map"), { size:new
GSize(document.documentElement.clientWidth*0.68,
document.documentElement.clientHeight-282)} );
setMapCenter();
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.addMapType(G_PHYSICAL_MAP);
map.addControl(new ImageControl());
map.setMapType(G_SATELLITE_MAP);

GEvent.addDomListener(document.getElementById("map"),
"DOMMouseScroll", wheelZoom); // Firefox
GEvent.addDomListener(document.getElementById("map"), "mousewheel",
wheelZoom); // Internet Explorer

test = new GGeoXml("http://www.unserServer/test.kml");

map.addOverlay(test);
}

else {
document.getElemtById("map").innerHTML = "Sorry"
}
}

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate