<%-- $HeadURL: svn+ssh://developername@svn.wald.intevation.org/deegree/apps/igeoportal-portlet/trunk/WEB-INF/igeotemplates/jsp/portlets/html/mapwindow.jsp $ --%> <%@ taglib uri='/WEB-INF/templates/jsp/tld/template.tld' prefix='jetspeed' %> <%@ taglib uri='/WEB-INF/igeotemplates/jsp/tld/template.tld' prefix='igeo' %> <%@ page import="java.util.List" %> <%@ page import="org.deegree.framework.util.StringTools" %> <%@ page import="org.deegree.portal.portlet.modules.actions.IGeoPortalPortletPerform" %> <%@ page import="org.deegree.portal.PortalUtils" %> <%@ page import="org.deegree.portal.context.ViewContext" %> <%@ page import="java.awt.Rectangle" %> <% String portletID = (String)request.getAttribute( "PORTLETID" ); String pid = StringTools.replace( portletID, "-", "", true ); String user = ((org.apache.jetspeed.om.security.BaseJetspeedUser)session.getAttribute("turbine.user")).getUserName(); String password = ((org.apache.jetspeed.om.security.BaseJetspeedUser)session.getAttribute("turbine.user")).getPassword(); String fiPortletID = (String)request.getAttribute( "FEATUREINFOTARGETPORTLET" ); String fiPaneID = (String)request.getAttribute( "FEATUREINFOTARGETPANE" ); ViewContext vc = IGeoPortalPortletPerform.getCurrentViewContext( session, portletID ); Rectangle window = vc.getGeneral().getWindow(); String[] baseReqs = null; if ( "anon".equals( user ) ) { baseReqs = PortalUtils.createBaseRequests( vc ); } else { baseReqs = PortalUtils.createBaseRequests( vc, user, password, null ); } if ( baseReqs == null || baseReqs.length == 0 ) { %>

no layer available; probably your web map context document points to a not reachable WMS. Please Check GetCapabilities URLs in your WMC document(s)! [--> WEB-INF/wmc]

<% } double minx = vc.getGeneral().getBoundingBox()[0].getX(); double miny = vc.getGeneral().getBoundingBox()[0].getY(); double maxx = vc.getGeneral().getBoundingBox()[1].getX(); double maxy = vc.getGeneral().getBoundingBox()[1].getY(); String crs = vc.getGeneral().getBoundingBox()[0].getCoordinateSystem().getFormattedString(); %>
<% if ( vc.getGeneral().getWindow().width < 0 ) { %> <% } else { %>
<% } %>