hello :
I have created a a code for my map bound but it is not working
probably my it is some syntax error;

*******
if (latlngArray.length == 1) {
            map.setCenter(new GLatLng(y, x));
        }
        else {
            var bound = new GLatLngBound();
            for (var i = 0; i < latlngArray.length; i++) {
                bound.extend(latlngArray[i]);
            }
            var level = map.getCurrentMapType().getBoundZoomLevel
(bound, map.getSize());

            var ne = bound.getNorthEast();
            var sw = bound.getSouthWest();

            map.setCenter(new GLatLng((ne.lat() + sw.lat()) / 2,
(ne.lng() + sw.lng()) / 2), level);
        }
--~--~---------~--~----~------------~-------~--~----~
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