Hi All,

I am using Google Maps 1.1 Library in GWT application. My requirement
is that the map dynamically zoom according to the poly lines.

But the getBoundsZoomLevel method always returns 0. Please find the
example code below.

 final LatLng originPoint1 = LatLng.newInstance(48.85,2.41);
 final LatLng originPoint2 = LatLng.newInstance(51.31,0.32);
 final LatLng centerPoint= LatLng.newInstance(46.0,2.0);
 final LatLng[] originLtArr = new LatLng[] { originPoint1,
originPoint2 ,centerPoint};

   // Find the zoom based on the points
  int mapZoom = mapObj.getBoundsZoomLevel(new
Polyline(originLtArr).getBounds());

Before i was using JavaScript APIs for Google map, in that the same
code was returning value as 7 but here it is zero.

Can anyone help me out on this?

Thanks and Regards,
Raji MS

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" 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-web-toolkit?hl=en.

Reply via email to