source: subversion/sites/other/freemap/index.php @ 8877

Last change on this file since 8877 was 5736, checked in by nick, 12 years ago

various changes to Freemap/Osmajax?

File size: 2.2 KB
Line 
1<?php
2require_once('../../common/latlong.php');
3$lat = isset($_GET['lat']) ? $_GET['lat']: 51.05;
4$lon = isset($_GET['lon']) ? $_GET['lon']: -0.72;
5$merc = ll_to_merc($lat,$lon);
6?>
7<html>
8<head>
9<title>OSMAJAX</title>
10<script type='text/javascript'>
11var easting = <?php echo $merc['e']; ?>;
12var northing = <?php echo $merc['n']; ?>;
13</script>
14<script src="http://www.openlayers.org/api/2.4/OpenLayers.js"></script>
15<script type='text/javascript' src='init.js'> </script>
16<script type='text/javascript' src='Osmajax.js'> </script>
17<script type='text/javascript' src='ajax.js'> </script>
18<script type='text/javascript' src='OSM.js'> </script>
19<script type='text/javascript' src='OSMItem.js'> </script>
20<script type='text/javascript' src='GeometriedOSMItem.js'> </script>
21<script type='text/javascript' src='OSMNode.js'> </script>
22<script type='text/javascript' src='OSMWay.js'> </script>
23<script type='text/javascript' src='OSMFeature.js'> </script>
24<script type='text/javascript' src='DrawOSMFeature.js'> </script>
25<script type='text/javascript' src='routetypes.js'> </script>
26<script type='text/javascript' src='ChangeFeatureDialog.js'> </script>
27<script type='text/javascript' src='../lib/converter.js'> </script>
28<script type='text/javascript' src='../lib/jscoord-1.0.js'> </script>
29<script type='text/javascript' src='../lib/Dialog.js'> </script>
30</head>
31<style type='text/css'>
32#map { width:640px; height:480px;}
33#status { width:640px; background-color: #000080; color:white;
34                        font-size:120%}
35</style>
36</head>
37<body onload='init()'>
38<div id="status">Welcome to OSMAJAX</div>
39<div id="map"></div>
40<div id="editpanel">
41<input type='button' id='loginbtn' value='login'/>
42<input type='button' id='navbtn' value='navigate' disabled='disabled'/>
43<input type='button' id='selbtn' value='select'/>
44<input type='button' id='drwbtn' value='draw' disabled='disabled'/>
45<input type='button' id='drwpointbtn' value='draw point' disabled='disabled' />
46<input type='button' id='chngbtn' value='change' disabled='disabled' />
47<input type='button' id='delbtn' value='delete' disabled='disabled' />
48</div>
49<div>
50<label for="search">Search (UK only):</label>
51<input id="search"/>
52<input type="button" value="Go!" onclick="placeSearch()"/>
53</div>
54</body>
55</html>
Note: See TracBrowser for help on using the repository browser.