Using the technique described here: http://econym.googlepages.com/range.htm
isn't possible using the Maps API Library for GWT directly, You would have to redefine some of the functions in the Maps API itself, which the GWT API protects against. So, you would have to drop to JavaScript to use this technique. On Tue, Dec 23, 2008 at 11:45 AM, Beppe <[email protected]> wrote: > > Hi to everybody. I need to limit the visible area in a map. I want to > reproduce an effect like this > http://econym.googlepages.com/example_range.htm > (one user can't move outside the defined bounds). > > How can I do in GWT? Actually I draw a rectangle around the interested > area and if a user "move outside the borders" I reset the center to > the "real" center of the map. To do this I use this line of code > > map.setCenter(LatLng.newInstance((maxX + minX)/2, (maxY + minY)/2)); > > but I want to hide the uninteresting part of the map. > > P.S. sorry for my English. > > > > -- 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 [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 -~----------~----~----~----~------~----~------~--~---
