1<%-- $HeadURL: svn+ssh://jwilden@svn.wald.intevation.org/deegree/apps/igeoportal-standard/branches/2.5_testing/recentertolayerproxy.jsp $ --%>
2<%--
3 This file is part of deegree, http://deegree.org/
4 Copyright (C) 2001-2009 by:
5 - Department of Geography, University of Bonn -
6 and
7 - lat/lon GmbH -
8
9 This library is free software; you can redistribute it and/or modify it under
10 the terms of the GNU Lesser General Public License as published by the Free
11 Software Foundation; either version 2.1 of the License, or (at your option)
12 any later version.
13 This library is distributed in the hope that it will be useful, but WITHOUT
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15 FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
16 details.
17 You should have received a copy of the GNU Lesser General Public License
18 along with this library; if not, write to the Free Software Foundation, Inc.,
19 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20
21 Contact information:
22
23 lat/lon GmbH
24 Aennchenstr. 19, 53177 Bonn
25 Germany
26 http://lat-lon.de/
27
28 Department of Geography, University of Bonn
29 Prof. Dr. Klaus Greve
30 Postfach 1147, 53001 Bonn
31 Germany
32 http://www.geographie.uni-bonn.de/deegree/
33
34 e-mail: info@deegree.org
35--%>
36<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
37<%
38    double[] bbox = (double[])request.getAttribute( "BBOX" );
39%>
40<html>
41    <head>
42		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
43		<meta name="author" content="lat/lon GmbH">
44        <meta name="KeyWords" content="OGC deegree iGeoPortal lat/lon" />
45		<meta name="audience" content="">
46		<title>deegree iGeoPortal -  centerviewproxy</title>
47		<link href="css/deegree.css" rel="stylesheet" type="text/css" />
48        <script LANGUAGE="JavaScript1.2" TYPE="text/javascript">
49        <!--
50            //will update the mapView if bbox isn't null
51            function registerValues() {
52<%
53                if (bbox != null) {
54                    out.println("var minx ="+ bbox[0]+";");
55                    out.println("var miny ="+ bbox[1]+";");
56                    out.println("var maxx ="+ bbox[2]+";");
57                    out.println("var maxy ="+ bbox[3]+";");
58%>
59                    parent.setProxy(document);
60                    parent.recenterToLayer(minx, miny, maxx, maxy);
61<%
62                } else {
63%>
64                    parent.setProxy(document);
65<%
66                }
67%>
68            }
69        // -->
70        </script>
71    </head>
72    <body onload="registerValues();">
73        <form action="" id="form" method="post"></form>
74    </body>
75</html>
76