This repository has been archived by the owner on Feb 20, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
old-interface.html
76 lines (75 loc) · 3.66 KB
/
old-interface.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>OpenStreetBugs - Help us to improve OpenStreetMap</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="StyleSheet" type="text/css" href="client/appspot/stylesheet.css" media="screen" />
<!--[if IE]><link rel="StyleSheet" type="text/css" href="stylesheet-ie.css" media="screen" /><![endif]-->
<link rel="icon" type="image/png" href="favicon.png" />
<script src="http://openlayers.org/api/OpenLayers.js" type="text/javascript"></script>
<script src="http://openstreetmap.org/openlayers/OpenStreetMap.js" type="text/javascript"></script>
<script src="client/appspot/script.js" type="text/javascript"></script>
<script type="text/javascript">
<!--
var map;
var layerMapnik = new OpenLayers.Layer.OSM.Mapnik("Mapnik");
var layerMaplint = new OpenLayers.Layer.OSM.Maplint("Maplint")
var layerTah = new OpenLayers.Layer.OSM.Osmarender("Tiles@Home");
var layerMarkers = new OpenLayers.Layer.Markers("POIs");
function init(){
loadNickname();
map = new OpenLayers.Map('map', {
maxExtent: new OpenLayers.Bounds(-20037508,-20037508,20037508,20037508),
numZoomLevels: 18,
maxResolution: 156543,
units: 'm',
projection: "EPSG:41001"
});
layerMarkers.setOpacity(0.7);
map.addLayers([layerMapnik, layerMaplint, layerTah, layerMarkers]);
map.addControl(new OpenLayers.Control.LayerSwitcher());
var panel = new OpenLayers.Control.Panel();
var button = new OpenLayers.Control.Button({displayClass: "addMarkerBtn", trigger: addMarker});
panel.addControls([button]);
map.addControl(panel);
map.setCenter(lonLatToMercator(new OpenLayers.LonLat(16.2734177852, 46.5321316399)), 4);
/*map.addControl(new OpenLayers.Control.Permalink());*/
map.events.register('moveend', map, endDrag);
var click = new OpenLayers.Control.Click();
map.addControl(click);
click.activate();
refreshPOIs();
}
// -->
</script>
</head>
<body onload="init()">
<div id="left">
<h1>OpenStreetBugs</h1>
<p>
Feel free to put on the map the modifications you would like to see on
<a href="http://www.openstreetmap.org">OpenStreetMap</a> (name of a street, incorrect junction, amenity, etc.)
</p>
<p>
<span class="warn">Do NOT use licensed data</span> like paper maps, Google Maps, etc. Use only your
knowledge of the reality or public domain data.
</p>
<p>
According to the OpenStreetMap license, the data that you add on the map will
be licensed <a href="http://creativecommons.org/licenses/by-sa/3.0/">CC BY-SA</a>.
</p>
<p>
<a href="more.html">Blog, Credits, Stats, etc.</a>
</p>
<p><br /><br /></p>
<p>Use the <img src='client/icon_error_add.png' alt='(+)' /> button (on the top of the map) to add a point.</p>
<form action="#"><p>Nickname or name:<br /><input id="nickname" type="text" onblur="saveNickname()" /></p></form>
</div>
<div id="linkbox">
<p id="permalink" style="display:none"></p>
<p id="rsslink"></p>
<p id="gpxlink"></p>
</div>
<div id="map" onmouseover='mapOver();' onmouseout='mapOut();'></div>
</body>
</html>