[OpenMap Users] Beginner: add an OMGraphics on map

From: Tri Tran <tri.tran@sonacom.com.au>
Date: Thu Oct 24 2002 - 21:22:28 EDT

Hi all,

I'm trying to put a graphic on map, using
com.bbn.openmap.examples.simple.SimpleMap2.java

...
mapHandler.add(shapeLayer);
// add an OMBitmap
      byte[] bytes = {0x11, 0x23, 0x22, 0x44};
      OMBitmap bm = new OMBitmap(-15.0f, 175.0f, 4, 4, bytes);
      bm.select();
      bm.generate(mapBean.getProjection());
      shapeLayer.repaint();
....

But nothing seem to appear, I don't know if the OMBitmap is not correct or
the redering part. all I want is to add a 4x4 symbol on a lat/long position.

Thanks

--
[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 Thu Oct 24 21:24:45 2002

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:33 EDT