Skip to main content
1-Visitor
March 6, 2008
Question

Filter Out "Empty" Layers

  • March 6, 2008
  • 1 reply
  • 1193 views
Is there any way to filter the layer tree so that only layers actually containing items will be displayed? We are using rule based layers and would like the layer tree to only display layers that have something on them. We don't want to hide the layers, just have them not shown in layer tree. There does not seem to be any filter for this built in. WF2 M260.

Thanks,

Mark Ganzer

    1 reply

    1-Visitor
    March 7, 2008
    Yes it can be done.


    1. in the layer tree select *[SHOW]>FIND>SEARCH*
    2. in the layer search dialog set type to "*LAYER PROPERTIES*" and
    choose "*CONTAINS ITEM ID*"
    3. set "Contains Item Id" to be *> 0* (greater than zero)
    4. pick* [ADD]*
    5. pick *[SELECT ALL]* and* [CLOSE]*
    6. back in the layer tree pick [SHOW] then *FILTER SELECTED*
    7. to un-filter choose *[SHOW] *then "*UNFILTER ALL*"


    Your layer tree will now only show layers that contain items.
    I doubt this is intelligent. IE it won't update if a layer that didn't have
    items suddenly gets one.

    Glenn Beer