Re: Changes in 4.5

From: Don Dietrick <dietrick@bbn.com>
Date: Fri Jun 07 2002 - 08:50:40 EDT

Hi Paul,

I commented out the the methods that rely on the ImageReceiver because
they have proven themselves to be unreliable. The createImage methods
start a serial, stable thread path to create an image.

The tradeoff is that your layer must implement the

renderDataForProjection(com.bbn.openmap.proj.Projeciton,
java.awt.Graphics)

method. I just noticed that there is a default implementation in the
Layer.java object (which you should override) that should be calling
projectionChanged() on itself before calling paint(). If you add this
method to your layer so that your graphics get generated with the
projection before you call paint(), your layer should appear on your
image.

- Don

On Thursday, June 6, 2002, at 11:09 AM, Paul Chisholm wrote:

> I have just tried to move my application to Openmap 4.5 and hit a few
> problems.
>
> The ImageServer.setTimeout method has disappeared. What is the
> alternative?
>
> The ImageServer.getMapImage method has disappered. I tried to use the
> createImage method instead but that caused a different problem. I am
> creating an image that consists of two shape layer and a layer created
> with
> OMGraphics. The shape layers appear in the image fine, but the OMGraphic
> layer is nowhere to be seen. It is there when getMapImage is used. This
> OMGraphic layer is missing when I use createImage in both 4.4 and 4.5.
>
> These are the two that have caused me problems, but it looks like
> quite a
> few other ImageServer methods have disappeared.
>
> Thanks,
> Paul
>
> --
> [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"]
>
>

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, BBN Technologies, dietrick@bbn.com
10 Moulton Street, Cambridge, MA 02138
617-873-3031 [fax]-2794
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

--
[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 Fri Jun 7 08:53:33 2002

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