Greetings,
This question relates to embedding user-editable layers at
maps.google.com into google maps javascript api v3 applications.
rtEditLayer = new google.maps.KmlLayer(rtEditLayer_url, {preserveViewport: true});
rtEditLayer.setMap(null);
The code above calls a map at
maps.google.com that is set to allow public collaboration.
When the user wants to edit the layer at
maps.google.com, this function (below) is called:
function edit_map () {
var mcenter = map.getCenter();
var mlat = mcenter.lat();
var mlng = mcenter.lng();
var z = map.getZoom();
var myType = map.getMapTypeId();
window.open(goToLoc2);
}
This all works well and good, but changes made at
maps.google.com seem to take various amounts of time to propagate to the main map.
Is it possible to add a random query string parameter to the end of the variable goToLoc2 to cause
maps.google.com to refresh the cache?
Any help, or examples linking to applications employing a similar functionality would be much appreciated.
Bob