Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have been using the Gmap API (v2) for dynamically displaying some data: = new GMap2(document.getElementById("map"));   
oMap.geoXml = new GGeoXml('');

I changed to v3 of the API, using the following code:

var georssLayer = new google.maps.KmlLayer('');

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...

share|improve this question
Please add a live link [url] to both your v2 and v3 maps - its much easier to de-bug using firebug. – Mapperz Mar 15 '11 at 16:22

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,-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)

share|improve this answer
This not what i talk about. By default this script show only 30 markers, but this markers depend on visible area of map. In old (v2) GM API it is automatically add BBOX parameters to the url... v3 is not (or probably it do it different?) – brutto Mar 15 '11 at 18:01
v3 uses fitBounds()… – Mapperz Mar 15 '11 at 19:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.