With the following methods, you can indicate whether
the objects within a certain layer should be visible to the user:
void setVisible(int layer, boolean value, boolean redraw)
boolean isVisible(int layer)
You can also decide whether a layer is visible or not
within a particular view. Refer to the following methods:
void setVisible(IlvManagerView view, int layer, boolean set, boolean redraw)
boolean isVisible(IlvManagerView view, int layer)
Finally, you can have a visible layer in a view temporarily
hide itself depending on certain conditions, generally depending on
the zoom factor. This can be achieved through an
IlvLayerVisibilityFilter that is called each time the
IlvManager
needs
to redraw a layer. You should implement this interface and return
whether or not the layer is visible with the
isVisible
method.
To be active, this filter must be registered on the corresponding
IlvManagerLayer using the
addVisibilityFilter method.