Hello,
Can anybody sugest something please ?
On Sep 23, 2:29 pm, neversaydie <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have a set of lat longs say 200.
> I construct a polygon out of these points. When i render this polygon
> the, zoom level is not set correctly set for some reasons.
>
> Can anybody help me why this is happeneing?
>
> Here is my code
>
> LatLng[] points = new LatLng[coordinates.size()];
> LatLngBounds bounds = new LatLngBounds();
>
> int index = 0;
> for ( Coordinate coordinate : coordinates ) {
> points[index] = new LatLng( coordinate.getLatitude(),
> coordinate.getLogitude() );
> bounds = bounds.extend( points[index] );
> index++;
> }
> Polygon polygon = new Polygon( points, color, 10, 0.0, color,
> 0.7 );
>
> mapWidget.clearOverlays();
> mapWidget.addOverlay( polygon );
>
> mapWidget.setCenter( bounds.getCenter(),mapWidget.getBoundsZoomLevel( bounds
> ));
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---