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