On Wed, Oct 29, 2008 at 12:11 PM, Vinz369 <[EMAIL PROTECTED]> wrote: > > Hi Eric, > > Thanks for notifying this issue. > I assume that in the workaround you gave me you wanted to write > LatLng.newInstance(90, 180) instead of LatLng.newInstance(90, 360) for > the second limit, right?
I am sorry, I keep sending you half baked things! I was just experimenting with the LatLng.newInstance(90, 360), it should have been 180. Because otherwise the 360 is interpreted as 0, and i get only half the > map. > > For your first point, i am sorry but being a beginner in all this java > and gwt programming, i don't know how to resolve the problem and solve > the issue. It won't resolve the problem. But if you did want to use the LatLngBounds.newInstance() method, it is broken until I release a new version. > > Are you saying i may be able to substitute something in the jar file > of gmaps? Could you indicate me how i can do that? If you want to build your own jar file from source, you can look at the Documentation on how to work with the library from source. > > Or should i wait for a new release? > I looked into the LatLngBounds class, but didn't see any function like > getFullBounds(). Am i missing something here? You could add that method directly into your code and use it if you need to create a LatLngBounds object without specifying any arguments. > > > Thanks again for your help. > > Vincent > > > > On 29 oct, 16:10, "Eric Ayers" <[EMAIL PROTECTED]> wrote: > > Hi Vincent, > > > > I filed this as Maps issue 823. Please go over and star the issue so > you'll > > be notified of any updates. > > > > http://code.google.com/p/gmaps-api-issues/issues/detail?id=823 > > > > > > > > On Wed, Oct 29, 2008 at 10:57 AM, Eric Ayers <[EMAIL PROTECTED]> wrote: > > > 1) There is a bug in the LatLngBounds noargs factory method! You can > > > pusbtitute the right code with: > > > > > private static native LatLngBounds getFullBounds() /*-{ > > > return new $wnd.GLatLngBounds(); > > > }-*/; > > > > > 2) I am able to reproduce this issue in the JavaScript API w/o GWT, so > I > > > assume its an underlying issue with the Maps JavaScript API. > > > > > This workaround gets you a bit closer: > > > > > LatLngBounds cloudOverlayBounds = > > > LatLngBounds.newInstance(LatLng.newInstance(-90, -179.61), > > > LatLng.newInstance(90, 360)); > > > > > On Wed, Oct 29, 2008 at 7:13 AM, Vinz369 <[EMAIL PROTECTED]> > wrote: > > > > >> First, thanks for trying to help me. > > >> The no arg LatLng.newInstance() does not exist. > > >> I guess you wanted to say the no arg LatLngBounds.newInstance(). But > > >> it does not work for me. The map does not show up. > > >> Here is the code i changed: > > > > >> LatLngBounds cloudOverlayBounds = LatLngBounds.newInstance(); > > >> final GroundOverlay cloudOverlay = new GroundOverlay("http:// > > >> dev.keyhole.com/clouds/clouds_2048_alphaed.png", cloudOverlayBounds); > > >> map.addOverlay(cloudOverlay); > > > > >> The best i managed to get was boundaries at (-90,-179) (90,180). > > >> Do you have another idea? > > > > >> Vincent > > > > >> On 28 oct, 21:53, "Eric Ayers" <[EMAIL PROTECTED]> wrote: > > >> > Your bounds are probably wrapping back to zero. > > > > >> > You can use the no arg LatLng.newInstance() to create bounds that > cover > > >> the > > >> > entire map. > > > > >> > On Tue, Oct 28, 2008 at 6:21 AM, Vinz369 <[EMAIL PROTECTED]> > > >> wrote: > > > > >> > > Dear all, > > > > >> > > I'm trying to use integrate a groundOverlay in my application. > > >> > > Here is the piece of code which is doing it: > > > > >> > > LatLngBounds cloudOverlayBounds = > > >> > > LatLngBounds.newInstance(LatLng.newInstance(-90,-179), > > >> > > LatLng.newInstance(90,179)); > > >> > > final GroundOverlay cloudOverlay = new GroundOverlay("http:// > > >> > > dev.keyhole.com/clouds/clouds_2048_alphaed.png", > cloudOverlayBounds); > > >> > > map.addOverlay(cloudOverlay); > > > > >> > > My problem is that everything is woking fine as long as i don't > use > > >> > > -180 and 180 for longitude boundaries. > > >> > > Does anyone have an idea on how to solve this problem. Because i > > >> > > really need to put my map between -180 and 180. > > >> > > Thanks in advance for your advises. > > > > >> > > Vincent > > > > >> > -- > > >> > Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp:// > > >> code.google.com/webtoolkit/ > > > > > -- > > > Eric Z. Ayers - GWT Team - Atlanta, GA USA > > >http://code.google.com/webtoolkit/ > > > > -- > > Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp:// > code.google.com/webtoolkit/ > > > -- Eric Z. Ayers - GWT Team - Atlanta, GA USA http://code.google.com/webtoolkit/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---