Hi Chris,
Out of the box, you can only have a north-up view of the map. You
could modify the MapBeans to rotate the java.awt.Graphics object used
by the layers to paint in, though, give the impression that the map is
rotated. The paintChildren() method is the one to play with. The only
other think to think about is that when the Graphics is rotated, the
window size, and therefore, the Projection height and width, might not
be big enough to cover the whole window space. So you might have to
play around with a translation offset for the Graphics coupled with an
expanded height and width setting for the Projection object in the
MapBean (that corresponds to the offset).
Hope this helps,
Don
On Jan 12, 2004, at 3:16 AM, Chris Riley wrote:
>
>> Hi,
>>
>> I am currently working on a project that simulates a moving object.
>> As I
>> recieve
>> co-ordinates for this object its location is updated appropriatly
>> on the
>> associated layer
>>
>> There are two ways in which this object must be displayed. The
>> default
>> for openmap is north up, and this is one requirement met. The
>> second is
>> to keep the object facing north at all times and rotate the map
>> around it
>> to accuratly represent its location and bearing.
>>
>> Is this possible with the current openmap architecture? Any help
>> would
>> be much appreciated.
>>
>> Thanks in advance
>>
>>
>> Chris
>>
>>
>>
>>
>>
>>
>>
>>
> General Dynamics United Kingdom Limited
> Registered in England and Wales No. 1911653
> Registered Office: 100 New Bridge Street, London, EC4V 6JA
> --
> [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"]
>
-- [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 Mon Jan 12 10:41:36 2004
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:37 EDT