Re: [OpenMap Users] Stupid question?

From: Don Dietrick <dietrick@bbn.com>
Date: Mon Oct 13 2003 - 10:18:27 EDT

On Monday, October 13, 2003, at 08:33 AM, Nicholas Wright wrote:
>>>>> Is there some kind of code in the Shape layer which only moves it
>>>>> if
>>>>> both the new lat/lon points are different from the previous ones?
>>>>
>>>> The OpenMap layers generally only respond of the projection changes
>>>> (width, height, center, scale or type)
>>>
>>> That's what I've been trying to do. If the current map "center" is
>>> latitude
>>> 0, longitude 60, and I've been trying to call:
>>>
>>> map.setCenter( 0.0f, 50.0f );
>>>
>>> nothing happens.
>>>
>>> If I do:
>>>
>>> map.setCenter( (float)Math.random(), 50.0f );
>>>
>>> it works! The projection only appears to change if the new latitude
>>> is
>>> different from the previous one.
>>
>> The projection in the MapBean will change to whatever you set it to,
>> and the layers will be notified. The OpenMap layers should respond if
>> *any* parameters have changed. Otherwise, since they should be
>> containing OMGraphics for that projection, they should simply repaint
>> themselves.
>>
>> Your map.setCenter(0f, 50f) call should be resulting in a map centered
>> over that point.
>
> Ok - thank you for clarifying. How do I report this as a bug then?

There's a link to a bugzilla tracking system on the openmap webpage -
http://openmap.bbn.com/bugzilla.

I just tried but couldn't reproduce your problem, however, so if you
entered your bug with the information we already know about, I'd
probably mark it as such. If you could provide a small sample program
that demonstrates the problem, I'll take a closer look at it.

Regards,

Don

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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 Mon Oct 13 10:19:09 2003

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