Re: [OpenMap Users] adding OMGraphics on the fly

From: Don Dietrick <dietrick_at_bbn.com>
Date: Thu, 9 Dec 2004 11:17:38 -0500

The only thing I can think of is that the OMGraphicList you are adding
the graphic to isn't the one being painted, but you are returning that
same OMGraphicList object in the prepare() method.

The OMGraphicHandlerLayer has it's own OMGraphicList variable that gets
set with the one returned from the prepare() method. That list may be
null. You can get it by calling getList() at the point where you add
your line.

- Don

On Dec 8, 2004, at 6:39 PM, SteveC wrote:

> * Don Dietrick (dietrick_at_bbn.com) wrote:
>> instead do:
>>
>> l.generate(getProjection());
>> graphics.add(l);
>>
>> but what you have should work, too.
>
> That makes the line being added not show, but the rest do appear rather
> than them all disappearing. As before they all reappear if I resize the
> window.
>
>> What are you doing in
>> projectionChanged()?
>
> Nothing, so the default method is running.
>
> Any ideas on how to make this work?
>
> have fun,
>
> SteveC steve_at_fractalus.com http://www.fractalus.com/steve/
>
>


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick_at_bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

--
[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 Thu Dec 09 2004 - 11:19:05 EST

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:06 EDT