Re: [OpenMap Users] is a point visible ?

From: Don Dietrick <dietrick@bbn.com>
Date: Fri Mar 04 2005 - 10:00:37 EST

Hi Philippe,

When you call OMPoly.generate(projection), the OMPoly contains a
java.awt.Shape object that represents it's projected location, in the
pixel space of the map window. Looking at those Shape coordinates will
let you know where it is for a particular map location.

Also, calling projection.forward(lat, lon) will give you a
java.awt.Point map location for that lat/lon.

Hope this helps,

Don

On Mar 2, 2005, at 12:35 PM, Philippe (Ausy) Aubrée wrote:

> I'm using a mapBean and several layers in order to draw a background
> map (scaled raster) and paths (polyline)
> At some point the map is zoomed in, and pathes are outside of the
> visible window.
>
> I need to know when a point of a path i have to draw will be visible
> or not in order to give user a hint on its relative position (where to
> pan to see it).
> I though of using map bean, but cannot figure out where to start.
>
> Any idea around.
>
> tnx.
>
> Philippe
>
> --
>
> Cordialement, --
>
> Philippe AUBREE
> Ausy France - IM1
> Tel: 05 61 43 80 56
> Fax: 05 61 16 60 85
>
> <paubree.vcf>

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick@bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

--
[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 Fri Mar 4 10:06:07 2005

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:41 EDT