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

From: Lepkowski, Thomas <>
Date: Wed, 20 Jun 2007 11:44:59 -0400

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: []
On Behalf Of Saglietti Davide
Sent: Wednesday, June 20, 2007 10:58 AM
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



[To unsubscribe to this list send an email to ""
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Wed Jun 20 2007 - 12:03:14 EDT

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