Re: [OpenMap Users] How do I repaint() a single layer on the map?

From: Davidian <kroberts_at_syrres.com>
Date: Wed, 27 Feb 2008 07:08:29 -0800 (PST)

Carsten,

That appears to work! I knew about that setting, but I assumed that making
a layer a background layer would prevent them from getting repainted at all.
Wow, thanks a lot. It seems that this will allow me to do what I want with
these layers, which is a relief.

Thanks again,

Kennedy


oland wrote:
>
> Use
>
> myLayer.background=true
>
> in your props file on the "static" layers
>
> /**
> * Property 'background' to designate this layer as a background
> * layer, which will cause extra buffering to occur if the
> * application can handle it. False by default.
> */
> public static final String AddAsBackgroundProperty = "background";
>
> or use (Layer.java)
>
> /**
> * Mark the layer as one that should be considered a background
> * layer. What that means is up to the MapBean or application.
> */
> public void setAddAsBackground(boolean set) {
> addAsBackground = set;
> }
>
> on the static layers. In combination with a buffered map bean this
> should stop repaint from being called on the layers marked as background
> as long as the projection stays the same between repaints.
>
> BR
> Carsten
>

-- 
View this message in context: http://www.nabble.com/How-do-I-repaint%28%29-a-single-layer-on-the-map--tp15663314p15715191.html
Sent from the OpenMap mailing list archive at Nabble.com.
--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Wed Feb 27 2008 - 10:09:28 EST

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