Hi Rajesh.M,
"Rajesh.M" wrote:
>
> Hi ,
>
> I have a very simple question. I want to create a "Custom icon"
> which is rectangular in shape and has a length, breadth of say
> l,b pixels. The user can select this icon say through a menu.
> After selecting the icon he would place it on some LAT/LON
> position(mouse click). I have to display a dialog showing some text
> information
> based on the rectangular area now selected.
> Assuming that i create a new MouseMode for this purpose..
>
> What i would like to know is
> What are the steps required to
> 1)Find out which LAT/LON was clicked.?
You can use the projection.inverse() methods to go from screen x, y to lat/lon.
> 2)based on l,b what is the LAT/LON area selected.?
This can be tricker - in what units? It also depends on the line type
you use for your rectangle (great circle, straight or rhumb). If you
want ground area, I think you'll need to find a spherical area algorithm.
- Don
-- [To unsubscribe to this list send an email to "majdart@bbn.com" with the following text in the BODY of the message "unsubscribe openmap-users"]Received on Wed May 23 15:25:00 2001
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:31 EDT