[OpenMap Users] how to add OMGraphics to a layer ?

From: John Chamberlain <jchamberlain_at_cra.com>
Date: Wed, 23 May 2007 09:39:47 -0400

I have been trying to draw some OMGraphics on a layer and can not figure
out how to do it. I do not want to use a properties file, I want to add
the objects directly to the layer. My code (with extraneous lines
removed) looks like this:

                mLayer = new
com.bbn.openmap.layer.OMGraphicHandlerLayer();
                mMapBean.add( mLayer );
                OMGraphicList omgraphiclistToBePlotted = new
OMGraphicList();
                // ... code makes OMGraphics objects and adds them to
list
                omgraphiclistToBePlotted.regenerate(
mMapBean.getProjection() );
                mLayer.add( omgraphiclistToBePlotted ); /// DOES NOT
COMPILE
                mMapBean.repaint();

Thanks for any assistance.

John S. Chamberlain

--
[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 Wed May 23 2007 - 09:41:43 EDT

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