Hello,
Our OpenMap application uses VMAP data to display maps and to write
VMAP data to a different format. I am trying to add OMGraphic objects
for displaying on top of the map.
I thought this procedure was fairly straightforward but I have not
been able to get it to work. As an example of displaying a rectangle
on top of the map I am using the following code:
OMRect tileBoundary = new OMRect(
Float.parseFloat( north ),
Float.parseFloat( west ),
Float.parseFloat( south ),
Float.parseFloat( east ),
OMGraphic.RENDERTYPE_LATLON );
tileBoundary.setLinePaint( new Color( 0, 0, 0 ));
tileBoundary.setVisible( true );
tileBoundary.generate( mapBean.getProjection() );
OMGraphicHandlerLayer handler = new OMGraphicHandlerLayer();
handler.doAction(
tileBoundary,
new OMAction( OMAction.RAISE_TO_TOP_GRAPHIC_MASK ) );
mapBean.add( handler );
north, west, south, and east are floats representing the boundaries of
the rectangle that I would like to display.
Any idea on how to correct this code?
Thanks and regards,
Mike Harrison
===============================
| Mike Harrison
| MIT Lincoln Lab
| 244 Wood St. S2-256
| Lexington MA 02420-9185
| mhh@ll.mit.edu
| (781) 981-3513
| (781) 981-5255 FAX
===============================
-- [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 Wed Feb 18 16:37:31 2004
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:37 EDT