function initialize() {
var myOptions = {
center: new google.maps.LatLng(23.71181,90.407467),
zoom: 8,
mapTypeId: google.maps.MapTypeId.ROADMAP
Yes, it is possible to generate a new KML file server-side (PHP) and then tell JavaScript to load a new KmlLayer using the URL that will generate the KML content. Note that the KML URL:
To overcome this caching, just add some random clatter to the URL. However, be aware caching is there to make it fast. You can't have both "super-fast KML" and "real-time fresh data" at once. Also, keep an eye on your own server's response times for KML URLs, the faster the better.