Can GWT use AJAX and perform IMAGE ZOOMING(magnification) like GOOGLE MAP

20 views
Skip to first unread message

rakesh

unread,
May 24, 2007, 7:44:24 AM5/24/07
to Google Web Toolkit
hiii everybody,

I have to use GWT n AJAX for some Project Work.

and I want to Use AJAX with help of GWT the way GOOGLE MAP uses to
zoom in/out some reason without refreshing the page.

So please tell me how can i do this and please suggest some good
tutorials or guide 4 better use of GWT.

still facing problems in understanding its complete functioning.

please help me out.

thanking you all

- rakesh

Reinier Zwitserloot

unread,
May 24, 2007, 10:35:40 AM5/24/07
to Google Web Toolkit
That's exactly what GWT can do.

There's a whole website dedicated to GWT. It has tutorials and kitchen
sinks and examples and getting started guides and everything! There's
even a FAQ!

You should really check it out.

http://code.google.com/webtoolkit

charlie...@gmail.com

unread,
May 24, 2007, 11:26:14 AM5/24/07
to Google Web Toolkit
+1 (Once again informative *and* made me laugh.)

Brill

unread,
May 24, 2007, 12:41:31 PM5/24/07
to Google Web Toolkit

GMaps does it by loading a whole new set of images at the new
magnification.

that said, there is no reason you couldn't use an:
image.setSize(w,h)

it'll make the image larger and smaller, but depending on the image
may cause it to pixilate are high magnification.

- Brill Pappin

rakesh

unread,
May 25, 2007, 12:25:37 AM5/25/07
to Google Web Toolkit
So is it the case that GOOGLE map loads a whole NEW SET of
IMAGES..........taking it 4m the SERVER (using AJAX)

instead of magnifying tht part???

i mean what AJAX do in that is t otake new set of images from server n
load it asynchronously??

or is there anything more that it does???

and what if i dont hav multiple sets of images ??? is the zooming in/
out is only option??

can't i reduce the loss of clarity of images??

thanking you all

--rakesh

jdwyah

unread,
May 25, 2007, 10:58:43 AM5/25/07
to Google Web Toolkit
The zooming on www.myhippocampus.com is done by modifying the width &
height of the images & redoing their spacing in an AbsolutePanel. It
give you a zoom in / zoom out effect with just the one set of images.
-jeff

> > - Brill Pappin- Hide quoted text -
>
> - Show quoted text -

Brill

unread,
May 25, 2007, 12:09:30 PM5/25/07
to Google Web Toolkit

On May 25, 12:25 am, rakesh <rakesh.ranjan.iit...@gmail.com> wrote:

[...]


> or is there anything more that it does???

well it does a lot more but not for zooming. The details of how a gmap
works can be quite complex... too long winded to describe here
(although there is plenty of info around if you want to check it out).
but yes, its a whole new set of images and its that simple.

> and what if i dont hav multiple sets of images ??? is the zooming in/
> out is only option??

Well, I guess you could use vector graphics... and I know there is a
module that supports it (its a pain though and browser support is
spotty).
See: http://gwt-widget.sourceforge.net/

> can't i reduce the loss of clarity of images??

Thats not really a function of GWT but of graphics in general. If you
want to be able to zoom in very small, you need a very high resolution
image which can be *very* large.

You may need to rethink your application.. do you *really* need to be
able to zoom an image, and how close do you need to get?

Hope that helps,
- Brill Pappin

Reply all
Reply to author
Forward
0 new messages