I have been using the Gmap API (v2) for dynamically displaying some data:
oMap.map = new GMap2(document.getElementById("map"));
oMap.geoXml = new GGeoXml('http://darudar.org/var/files/workaroud/gmap/data.php?num=30');
I changed to v3 of the API, using the following code:
var georssLayer = new google.maps.KmlLayer('http://darudar.org/var/files/workaroud/gmap/data.php?num=30');
georssLayer.setMap(oMap.map);
Unfortunately, after the change the data markers do not show correctly or do not show at all. With v2, zooming and scaling allows a kml layer to get a BBOX array and to redraw the markers correctly. Does anyone know how to recreate this functionality with v3 of the API ?
PS: Sorry for my eng…
Best Answer
Works in Google Maps - it takes Google a few seconds to parse the KML and overlay it. Your script might need a time count 3-5 seconds - or will display nothing.
See it here http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=http:%2F%2Fdarudar.org%2Fvar%2Ffiles%2Fworkaroud%2Fgmap%2Fdata.php%3Fnum%3D30&sll=37.0625,-95.677068&sspn=42.174768,79.013672&ie=UTF8&ll=57.231503,41.220703&spn=29.32517,79.013672&z=4
(wait 5 seconds for Google Servers to parse the kml data)