Re: bound function

2009-04-01 Thread Esa
There is an 's'-character missing >             var bound = new GLatLngBound(); Should be var bound = new GLatLngBounds(); There is by the way GLatLngBounds.getCenter() method. You don't have to calculate the center point, the method does it for you. --~--~-~--~~~--

Re: bound function

2009-04-01 Thread Rossko
> I have created a a code for my map bound but it is not working > probably my it is some syntax error; Maybe. Your code snippet is useless, we can't see what the variable values are or what context and scope it is working in. You haven't even bothered to describe the error. Please follow the pos

bound function

2009-04-01 Thread tamerhat...@qatarnavigator.com
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 < lat