or should i edit this part:

geocoder.getLatLng(
              addresses[i],
              function(point) {
                if (!point) {

                } else {

                                        if(typeof searchAddresses == "object"){
                                                counter = counter + 1;
                                var marker = new GMarker(point);
                                                demarkers[counter] = 
createOtherMarker(point, counter);
                                                
map.addOverlay(demarkers[counter]);
                                        } else {

                                                if(counter == 0){
                                                        counter = counter + 1;
                                        var marker = new GMarker(point);
                                                        demarkers[counter] = 
createMarker(point, counter);
                                                        map.setCenter(point, 
mapinzoom);
                                                        
map.addOverlay(demarkers[counter]);
                                                } else {
                                                        counter = counter + 1;
                                        var marker = new GMarker(point);
                                                        demarkers[counter] = 
createOtherMarker(point, counter);
                                                        
map.addOverlay(demarkers[counter]);
                                                }
                                        }

                }
              }
            );
--~--~---------~--~----~------------~-------~--~----~
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