Hi,

   I've encountered in this problem:
http://kepfeltoltes.hu/081106/mapbug_www.kepfeltoltes.hu_.jpg

I have multilple maps generated on a page and the first one crashes
like the screenshot, the rest pops the bubble correctly.

It's not a timeout, asyncron problem I think...

Here is the code I use:

var map, geocoder = {};

function draw_map(id, address, theId, isExact) {

  this.id = theId;
  var pass = this;

  map = new GMap2(document.getElementById(id));
  map.addControl( new GSmallMapControl() );

  if( isExact ){
                  var cords = address.split('|');
                  map.setCenter(new GLatLng(cords[0], cords[1]), 15);

                  point = new GLatLng( cords[0], cords[1] );

                  marker = new GMarker(point);

                  map.addOverlay(marker);
  } else {
                  map.setCenter(new GLatLng(34, 0), 15);
                  geocoder = new GClientGeocoder();
                  geocoder.getLocations(address, function (response) {

                          map.clearOverlays();
                          if (!response || response.Status.code != 200) {
                                $( id ).style.display = 'none';
                          } else {
                                place = response.Placemark[0];
                                point = new GLatLng(place.Point.coordinates[1],
                                                                        
place.Point.coordinates[0]);

                                marker = new GMarker(point);
                                map.addOverlay(marker);

                                marker.openInfoWindowHtml( $( 'googleinfo' + 
theId ).innerHTML );
                          }
                  });
        }
}

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to