RE: [OpenMap Users] Hello!... and question

From: Saglietti Davide <davide.saglietti_at_guest.telecomitalia.it>
Date: Thu, 21 Jun 2007 09:05:09 +0200

 

Probably the word "draw" caused a misunderstanding... This "rectangle" is created by the user with the mouse, clicking the left button of the mouse somewhere on the map, dragging the pointer and releasing the button.... In other words, the user (not me in the code) select a portion of the map and the program has to underline the objects that are inside the selection (and other things with them).

 

Thanks again!!!

 

Davide Saglietti

 

c/o Telecom Italia Lab

Via Guglielmo Reiss Romoli 274

10148 TORINO

 

tel: +39 011 228 5523

e-mail: davide.saglietti_at_guest.telecomitalia.it

________________________________

From: Lepkowski, Thomas [mailto:thomas.lepkowski_at_lmco.com]
Sent: mercoledì 20 giugno 2007 17.45
To: Saglietti Davide; openmap-users_at_bbn.com
Subject: RE: [OpenMap Users] Hello!... and question

 

Hello Davide,

 

I'll assume you know Java. Use the drawing layer (see Demo) to draw an "OMThing" In your case, you draw an OMRect. Now, with your list of objects in hand, check each one to see if it's inside the OMRect. Using getWestLon, getEastLon, getSouthLat, and getNorthLat (these define the OMRect's bounding box), test each of your object's lat and lon to see if they're inside the bounding box.

 

The first step in this process is to create your own drawing layer and have control over the OMRect that you draw.

 

I hope this helps.

 

 

________________________________

From: owner-openmap-users_at_bbn.com [mailto:owner-openmap-users_at_bbn.com] On Behalf Of Saglietti Davide
Sent: Wednesday, June 20, 2007 10:58 AM
To: openmap-users_at_bbn.com
Subject: [OpenMap Users] Hello!... and question

Hello everybody! My name is Davide and, as you can see in the signature, I'm writing from Italy; I joined this list some minutes ago and obviously... I have a question about the library.

I have to represent some objects over a map and, for this, I'm implementing a class like in the example MapBean provided with the code. After that, I have to select some object "drawing" a rectangle over the map with the mouse.... Like a normal selection of a portion of an image, I "draw" this rectangle to select all the objects that are into this rectangle. Is it possible? How?

 

Thanks in advance and... excuse my bad English!

 

Davide Saglietti

 

c/o Telecom Italia Lab

Via Guglielmo Reiss Romoli 274

10148 TORINO

 

tel: +39 011 228 5523

e-mail: davide.saglietti_at_guest.telecomitalia.it

 



--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Thu Jun 21 2007 - 03:18:48 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:08 EDT