RE: [OpenMap Users] repainting issues in openmap 4.6.2

From: Butler, Jason <>
Date: Mon, 23 Jan 2006 13:32:29 +1030

Thanks Don,

That fixed my problem.

Best regards,

Jason Butler.

-----Original Message-----
From: Don Dietrick []
Sent: Monday, January 23, 2006 12:51 PM
To: Butler, Jason
Subject: Re: [OpenMap Users] repainting issues in openmap 4.6.2

Hi Jason,

On Jan 22, 2006, at 7:39 PM, Butler, Jason wrote:

> Hi Don,
> Yes, The layers that are not repainting are layers that I have
> written.
> The custom layer extends the Layer classs.
> The projectionChanged method code is as follows:
> public void projectionChanged(com.bbn.openmap.event.ProjectionEvent
> theEvent)
> {
> if(setProjection(theEvent) == null)
> {
> //Nothing to do, already have it and have acted on it
> return;

Actually, you need to call repaint() here. If your layer is the only
one on the map, you need to have something calling repaint on the
MapBean. You can check out the
com.bbn.openmap.layer.policy.StandardPCPolicy for notes. The policy
objects really only affect OMGraphicHandlerLayers, but you get the

- Don

[To unsubscribe to this list send an email to ""
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Sun Jan 22 2006 - 22:08:24 EST

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:07 EDT