The layer receives the MapBean's projection in the
projectionChanged(ProjectionEvent) method. The layer has a
setProjection(ProjectionEvent) method, and if you call that within the
projectionChanged() method, you can use the projection later by calling
getProjection().
After you modify the position of your OMGraphic, call
OMGraphic.generate(getProjection()), and then call layer.repaint().
- Don
On Tuesday, March 25, 2003, at 06:29 AM, CHAKIRI HOUDA wrote:
> Hi,
> in fact what i am trying to do is tracking the point by giving it each
> time a new projection if i change the the projection of the mapbean and
> the other layers nothing is happening the hole map including the point
> will move, how can i solve this problem..
> regards
> houda
>
> On Mon, 24 Mar 2003, Don Dietrick wrote:
>
>> You have to change the projection in the mapbean. In the code
>> below,
>> you've set the projection in the layer, and it's the only one to know
>> about the new projection. All of the other layers are using the
>> mapbean's projection, and your layer is using a different projection.
>>
>> - Don
>>
>> On Monday, March 24, 2003, at 04:41 AM, CHAKIRI HOUDA wrote:
>>
>>> Hello,
>>>
>>> i have a problem with map projections, i am changing the coordinates
>>> of a
>>> point by changing its progection, the new projection that i am giving
>>> is
>>> not recognized and the point changes its place to a random place..
>>> Projection p1 =
>>> ProjectionFactory.makeProjection(ProjectionFactory.getProjType(Enviro
>>> nm
>>> ent.get(E
>>> nvironment.Projection,
>>> Mercator.MercatorName)),33.53342f,-5.10973f,15000f,592,442);
>>> ProjectionEvent pr = new ProjectionEvent(lyr, p1);
>>> lyr.projectionChanged(pr);
>>> lyr.repaint();
>>> i don't see from where the problem come..
>>>
>>> thanks
>>>
>>>
>>> *********************************************************************
>>> **
>>> ***************************
>>> The contents of this email and any attachments are confidential.
>>> It is intended for the named recipient(s) only.
>>> If you have received this email in error please notify the system
>>> manager by sending
>>> an email to ITS Helpdesk at helpdesk@alakhawayn.ma or the sender
>>> immediately
>>> and do not disclose the contents to anyone or make copies.
>>> ITS antivirus gateway has scanned this email for viruses, vandals and
>>> malicious
>>> content.
>>> *********************************************************************
>>> **
>>> ***************************
>>>
>>> --
>>> [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"]
>>>
>>>
>>
>>
>> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>> Don Dietrick, BBN Technologies, dietrick@bbn.com
>> 10 Moulton Street, Cambridge, MA 02138
>> 617-873-3031 [fax]-2794
>> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>>
>> --
>> [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"]
>>
>
>
> ***********************************************************************
> ***************************
> The contents of this email and any attachments are confidential.
> It is intended for the named recipient(s) only.
> If you have received this email in error please notify the system
> manager by sending
> an email to ITS Helpdesk at helpdesk@alakhawayn.ma or the sender
> immediately
> and do not disclose the contents to anyone or make copies.
> ITS antivirus gateway has scanned this email for viruses, vandals and
> malicious
> content.
> ***********************************************************************
> ***************************
>
> --
> [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"]
>
>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, BBN Technologies, dietrick@bbn.com
10 Moulton Street, Cambridge, MA 02138
617-873-3031 [fax]-2794
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-- [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 Tue Mar 25 08:07:05 2003
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:35 EDT