views:

40

answers:

2

Dear All,

I will explain my question clearly. I need to zoom in/zoom out the world map. When I click on the particular country in map, control should redirected to new page with respective the country. I dont have any idea about this in java. Please explain the steps to acheive the above task.

A: 

As the question is quite general, here is a general answer: Zooming often means, that you want to display a certain percentage of somethin, and not the whole, where your size of the displayed will not change.

But in your case it seems more like a "find a mouse click in a polygon" thing. So you have to add a selection/click listener to whatever widgets you use (Swt? swing? ....?) where you change what your program renders.

InsertNickHere
A: 

It sounds like you may be trying to reinvent the wheel. Google etc have already solved this problem rather well. It might be better to incorporate an existing solution into your application. Have a look at GoogleEarth inside Java Swing.

macleojw