Re: [OpenMap Users] adding OMGraphics on the fly

From: SteveC <steve_at_fractalus.com>
Date: Fri, 10 Dec 2004 14:02:51 +0000

I found it. In the depths of my code I was doing a setVisible(false) I
had forgotten about. Doh.

Thanks muchly for your help.

* Don Dietrick (dietrick_at_bbn.com) wrote:
> 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
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>
>

have fun,

SteveC steve_at_fractalus.com http://www.fractalus.com/steve/
--
[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 Fri Dec 10 2004 - 09:09:54 EST

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