1<%-- $HeadURL: svn+ssh://jwilden@svn.wald.intevation.org/deegree/apps/igeoportal-standard/branches/2.5_testing/legend_dyn.jsp $ --%> 2<%-- $Id: legend_dyn.jsp 24874 2010-06-15 08:58:30Z apoth $ --%> 3<%-- 4 This file is part of deegree, http://deegree.org/ 5 Copyright (C) 2001-2009 by: 6 - Department of Geography, University of Bonn - 7 and 8 - lat/lon GmbH - 9 10 This library is free software; you can redistribute it and/or modify it under 11 the terms of the GNU Lesser General Public License as published by the Free 12 Software Foundation; either version 2.1 of the License, or (at your option) 13 any later version. 14 This library is distributed in the hope that it will be useful, but WITHOUT 15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 16 FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 17 details. 18 You should have received a copy of the GNU Lesser General Public License 19 along with this library; if not, write to the Free Software Foundation, Inc., 20 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 21 22 Contact information: 23 24 lat/lon GmbH 25 Aennchenstr. 19, 53177 Bonn 26 Germany 27 http://lat-lon.de/ 28 29 Department of Geography, University of Bonn 30 Prof. Dr. Klaus Greve 31 Postfach 1147, 53001 Bonn 32 Germany 33 http://www.geographie.uni-bonn.de/deegree/ 34 35 e-mail: info@deegree.org 36--%> 37<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 38<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> 39<% 40 String legendURL = (String)request.getAttribute( "LEGENDURL" ); 41 String width = (String)request.getAttribute( "LEGENDWIDTH" ); 42 String height = (String)request.getAttribute( "LEGENDHEIGHT" ); 43%> 44<html> 45 <head> 46 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 47 <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="no-cache"> 48 <title>Insert title here</title> 49 <link href="css/deegree.css" rel="stylesheet" type="text/css" /> 50 <script type="text/javascript" src="wmsrequestfactory.js"></script> 51 <script type="text/javascript"> 52 <!-- 53 var innerLegDoc = null; 54 55 function register() { 56 if ( parent.controller == null ) { 57 parent.controller = new parent.Controller(); 58 parent.controller.init(); 59 } 60 } 61 62 function initLegend() { 63 parent.controller.initLegend( document ); 64 } 65 66 67 function paintLegend() { 68<% 69 if ( legendURL == null ) { 70%> 71 var frm = document.forms[0]; 72 frm.action = "control"; 73 var hidden = document.getElementById( "dyn_rpc" ); 74 hidden.value = parent.controller.vLegend.getRPCValues(); 75 frm.submit(); 76<% 77 } 78%> 79 } 80 81 // --> 82 </script> 83 </head> 84 <body class="pLegendDyn" leftmargin="0" topmargin="0" onload="register(); initLegend(); paintLegend();"> 85 <form name="legendform" method="post"> 86 <input type="hidden" id="dyn_rpc" name="rpc" /> 87 </form> 88<% 89 if ( legendURL != null ) { 90%> 91 <img src="<%=legendURL %>" border="0" width="<%=width %>" height="<%=height %>" /> 92<% 93 } 94%> 95 </body> 96</html>