RE: [OpenMap Users] Newbie questions

From: <Benjamin.May@bookspan.com>
Date: Mon Aug 11 2003 - 14:51:41 EDT

 
This is a good start... What class is that in? You have some methods
(getMapProperties() for instance) which you dont provide here. Are the
openmap methods? Where are you passing it the co-ordinates so it knows what
map to draw? Thanks!

Here is the block of code I use to generate a map jpeg from a set of
properties and a map projection.
 
 
 public byte [] getMapAsJPEG(HttpSession session)
  {
     Properties props = getMapProperties();
 
      ImageServer imageServer = new ImageServer("mapDemo", props);

      com.bbn.openmap.image.SunJPEGFormatter formatter = new
com.bbn.openmap.image.SunJPEGFormatter();
      formatter.setImageQuality(1.0f);
      imageServer.setFormatter(formatter);
      byte [] imageBytes = imageServer.createImage(getMapProjection());
      return imageBytes;
  }

--
[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 Mon Aug 11 14:52:20 2003

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