Hi group,

I fighting a little with the IE8 browser. I want to geocode some
addresses by using the following function:
-------------------------------------------------------------------------
function initMap() {
                        if(GBrowserIsCompatible()) {
                          map = new GMap2(document.getElementById("map"));
                          '.$addresslist.'
                          geocoder = new GClientGeocoder();
                          for (var i = 0; i < addresslist.length; ++i) {
                                geocoder.getLocations(addresslist[i], addToMap);
                          }
                          map.setCenter(new GLatLng(47.97889140226656,
8.41552734375), 10);                      map.addControl(new GLargeMapControl
());
                         }
                    }

 function addToMap(response)
                   {
                      place = response.Placemark[0];
                      point = new GLatLng(place.Point.coordinates
[1],place.Point.coordinates[0]);
                          var icon = new GIcon(G_DEFAULT_ICON);
              icon.image = "http://chart.apis.google.com/chart?
cht=mm&chs=24x32&chco=FFFFFF,008CFF,000000&ext=.png";
                      var marker = new GMarker(point, {icon: icon});
                      '.$linklist.'
                      map.addOverlay(marker);
                      this.markers.push(marker);
                      for (var i = 0; i <= addresslist.length; ++i) {
                                        
this.markers[i].bindInfoWindowTabsHtml("<b>" + linklist[i] + "</
b><br>" + addresslist[i]);
                          }
                   }

-------------------------------------------------------------------
The problem is, that in IE8 I get the error: this.markers[...] is NULL
or no object.
Any suggestions to me?

Thanks a lot.
Regards

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