Reputation: 1513
Can anyone tell me why this kml file won't display on google maps?
Im using the following code to add it to the map object which seems to work fine with other kml files.
var kml = new google.maps.KmlLayer('http://www.emotination.com/kml/tasman.kml');
kml.setMap(map);
Feed validator says its valid and it isn't too big for googles servers to parse?
The map just zooms right into the ocean!
Upvotes: 4
Views: 2843
Reputation: 1513
You need to ensure Google's servers aren't displaying a cached copy of your kml file
A good way to do this is to do what Björn suggests in his comment and just add a timestamp so the end of the url:
var kml_tasman = new google.maps.KmlLayer('http://www.emotination.com/kml/tasman.kml?time='+new Date().getTime());
kml_tasman.setMap(map);
Upvotes: 8