%@ page import="org.osgeo.mapguide.*" %> <%@ page import="java.util.*" %> <%@ page import="java.io.*" %> <%@ page import="java.text.*" %> <%@ page import="javax.servlet.jsp.*" %> <%@ page import="javax.servlet.http.*" %> <%@ include file="../common/common.jsp" %>
Layers, in draw order:
"); out.println("Layer | GetVisible() | IsVisible() |
---|---|---|
" + layer.GetName() + " | " + (layer.GetVisible() ? "on" : "off") + " | " + (layer.IsVisible() ? "on" : "off") + " |
Error: "); out.println(e.GetDetails()); out.println("
"); } %>GetVisible()
returns the state of the visibility flag for a given layer (the check box in the
Layers pane). IsVisible()
returns the actual visibility of a layer, based on its visibility flag,
the visibility flag of any groups that include the layer, and whether the layer has a defined style for the
current view scale.