Tnx for the hint.
I managed to get through using projection.forward()
I found the mapBean told me y != 0 but the screen estate belonging to
the mapBean is between actually 0,0 and (Width, heigth). Not that
important anyway.
have a nice day.
Don Dietrick a écrit :
> 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_at_bbn.com
> BBN Technologies, Cambridge, MA
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>
>
--
Cordialement,
--
Philippe AUBREE
Ausy France - IM1
Tel: 05 61 43 80 56
Fax: 05 61 16 60 85
--
[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 Mon Mar 07 2005 - 12:45:33 EST