[OpenMap Users] Re centre map

From: Gatrell, Mark (UK) <mark.gatrell@baesystems.com>
Date: Thu Apr 22 2004 - 04:18:07 EDT

Don

        I am trying to re center my map on the result of a gps position change...

        I have been trying to understand Brian Hudson answer to Jaya back in Feb (RE moving icon)but have come to a dead end!

        My code so far is :- (Direct copy of Brians!) within my extended version of OMGraphicHandlerLayer.

        Proj proj = (Proj)getProjection().makeClone();
        proj.setCenter(newLatPosition,newLongPosition);

        This compiles fine..

        But I do not understand the next line...

        _map.setProjection(proj);

        I have tried to repaint my MapBean, but this has no affect.

        Would you be so kind as to explain _map ?

        Thankyou for your help

        Regards

        Mark

********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

--
[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 Thu Apr 22 05:55:35 2004

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