OK, guys, thanks for hanging in with me.
I've rewritten my function as:
      function zoommap() {
        for (var i=0; i<gmarkers.length; i++) {
          if (!gmarkers[i].isHidden()) {
            var bounds=new GLatLngBounds();
            var point = new GLatLng(gmarkers[i].mylat,gmarkers
[i].mylng);
            //var point = new GLatLng(gmarkers[i].getGLatLng());
            }
        }
         bounds.extend(point);
         map.setZoom(map.getBoundsZoomLevel(bounds));
         map.setCenter(bounds.getCenter());
       }
assuming the bounds.extend has to be within the function brackets and
before the map.set... lines. Still no good: map still zooms and
centers on the last marker in the new array. Frustrating!

And "var point = new GLatLng(gmarkers[i].getGLatLng());" seems not to
work. I don't have any **other** reason to add lat and lng properties
to my markers, no. I'm sure it's bloating the code, but it's the only
way I can get the info to get read on load, and stick with the marker
for future use. The code "var point = new GLatLng(gmarkers
[i].getGLatLng());" makes Firebug throw an error message, telling me
it is "not a function." In Firefox using that line disables my
checkboxes. Rrrrrgh.
--~--~---------~--~----~------------~-------~--~----~
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