[OpenMap Users] Re: OpenMap Locking Layer position?

From: Don Dietrick <dfdietrick_at_gmail.com>
Date: Thu, 21 Oct 2010 02:24:03 -0400

Hi Adam,

If you are using the LayersPanel to modify the order of the layers,
I'd extend it so that the panel for your layer never gets created.
You basically override setLayersFromEDT() so that your special layer
gets taken off the top of the Layer[], and then override
rejiggerMapLayers() at the end so it gets put back at the beginning of
the Layer[] passed back to the LayerHandler.

If you want to be consistent, you can extend the LayersMenu too, so
that the menu item used for your layer isn't there. That way, the
panel and menu are showing the same number of layers.

Hope this helps,

Don




On Wed, Oct 20, 2010 at 2:29 PM, Brightwell, William
<wbrightwell_at_mtcsc.com> wrote:
> Hey Don,
>
> Quick question (I hope).  Is there a way to lock the position of layer but
> still allow other layers to be rearranged?  The use case I am dealing with
> is that we want one layer to always be on top but all the others one the
> ability to be rearranged as necessary.  Any ideas or clues?
>
> -Adam
>
> --
> W. Adam Brightwell
> Software Engineer, MTCSC
> Certified Scrum Master
>
> Email:  wbrightwell_at_mtcsc.com
> DCO:    william.brightwell_at_chat.dco.dod.mil
> Office: 843-856-1935/1985 x51632
> Cell:   843-810-8701
>
>
>

--
[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 Thu Oct 21 2010 - 02:25:26 EDT

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