source: subversion/sites/other/freemap-npe/index.php @ 5557

Last change on this file since 5557 was 1540, checked in by nick, 13 years ago

Freemap-NPE: initial version

File size: 2.1 KB
Line 
1<?php
2session_start();
3
4$_SESSION['e'] = isset($_GET['e']) ? $_GET['e']: 
5        (isset($_SESSION['e'])  ? $_SESSION['e'] : 489600);
6$_SESSION['n'] = isset($_GET['n']) ? $_GET['n']: 
7        (isset($_SESSION['n']) ? $_SESSION['n'] : 128500);
8?>
9<html>
10<head>
11<script type='text/javascript'
12src='http://www.openlayers.org/api/2.2-rc2/OpenLayers.js'>
13</script>
14<script type='text/javascript'>
15var easting = <?php echo $_SESSION['e']; ?>;
16var northing = <?php echo $_SESSION['n']; ?>;
17</script>
18<script type='text/javascript' src='main.js'> </script>
19<style type='text/css'>
20body { font-family: helvetica,arial,sans-serif }
21#map { position:absolute; top:0px; left:0px; width:750px; height:500px;
22                overflow:auto}
23#fmap { position:absolute; top:0px; left:0px; width:750px; height:500px;
24z-index:100;}
25#rightbar { left: 750px; position:absolute; top:0px;}
26a { text-decoration: none }
27</style>
28</head>
29
30<body onload='init()'>
31
32<div id='map'> </div>
33<div id='rightbar'>
34<p><img src='/images/freemap_halfsize.png' alt='the new freemap'/></p>
35<p><strong>freemap-npe alpha</strong>
36Using New Popular Edition maps from
37<a href='http://www.npemap.org.uk'>npemap.org.uk</a> -
38maps are not for commercial use</p>
39<p>Path data from
40<a href='http://www.openstreetmap.org'>OpenStreetMap</a>
41</p>
42<p>Slippy map from
43<a href='http://www.openlayers.org'>OpenLayers</a></p>
44<div>
45<!--
46<img src='/images/osmabrowser/arrow_up.png' alt='north'
47onclick="updateGrid('up')" />
48<img src='/images/osmabrowser/arrow_down.png' alt='south'
49onclick="updateGrid('down')" />
50<img src='/images/osmabrowser/arrow_left.png' alt='west'
51onclick="updateGrid('left')" />
52<img src='/images/osmabrowser/arrow_right.png' alt='east'
53onclick="updateGrid('right')" />
54<img src='/images/osmabrowser/magnify.png' alt='zoom in' onclick="zoomin()" />
55<img src='/images/osmabrowser/shrink.png' alt='zoom out' onclick="zoomout()" />
56-->
57</div>
58<div>
59<label for='search'>Search</label>
60<input name='search' id='search' />
61<input type='button' value='Go!' onclick='placeSearch()'/>
62</div>
63
64<div>
65<img src="/images/fmapkey.png" alt="Key to map"/>
66</div>
67
68</div>
69</body>
70</html>
Note: See TracBrowser for help on using the repository browser.