1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|
2 | <html> |
---|
3 | <head> |
---|
4 | <script src="http://api06.dev.openstreetmap.org/javascripts/prototype.js?1209006421" type="text/javascript"></script> |
---|
5 | <script src="http://api06.dev.openstreetmap.org/javascripts/site.js?1209006421" type="text/javascript"></script> |
---|
6 | <!--[if lt IE 7]><script src="http://api06.dev.openstreetmap.org/javascripts/pngfix.js?1209006421" type="text/javascript"></script><![endif]--> <!-- thanks, microsoft! --> |
---|
7 | <link href="http://api06.dev.openstreetmap.org/stylesheets/site.css?1209006422" media="screen" rel="stylesheet" type="text/css" /> |
---|
8 | <link href="http://api06.dev.openstreetmap.org/stylesheets/print.css?1209006422" media="print" rel="stylesheet" type="text/css" /> |
---|
9 | <link href="http://api06.dev.openstreetmap.org/opensearch/osm.xml" rel="search" title="OpenStreetMap Search" type="application/opensearchdescription+xml" /> |
---|
10 | <title>OpenStreetMap</title> |
---|
11 | </head> |
---|
12 | <body> |
---|
13 | <div id="content"> |
---|
14 | <div id="sidebar"> |
---|
15 | <table class="sidebar_title" width="100%"> |
---|
16 | <tr> |
---|
17 | <td align="left" id="sidebar_title">Search Results</td> |
---|
18 | <td align="right"><a href="javascript:closeSidebar()">Close</a></td> |
---|
19 | </tr> |
---|
20 | </table> |
---|
21 | <div id="sidebar_content"> |
---|
22 | </div> |
---|
23 | </div> |
---|
24 | |
---|
25 | <script type="text/javascript"> |
---|
26 | <!-- |
---|
27 | var onclose; |
---|
28 | |
---|
29 | function openSidebar(options) { |
---|
30 | options = options || {}; |
---|
31 | |
---|
32 | if (onclose) { |
---|
33 | onclose(); |
---|
34 | onclose = null; |
---|
35 | } |
---|
36 | |
---|
37 | if (options.width) { $("sidebar").style.width = options.width; } |
---|
38 | else { $("sidebar").style.width = "30%"; } |
---|
39 | |
---|
40 | $("sidebar").style.display = "block"; |
---|
41 | |
---|
42 | resizeMap(); |
---|
43 | |
---|
44 | onclose = options.onclose; |
---|
45 | } |
---|
46 | |
---|
47 | function closeSidebar() { |
---|
48 | $("sidebar").style.display = "none"; |
---|
49 | |
---|
50 | resizeMap(); |
---|
51 | |
---|
52 | if (onclose) { |
---|
53 | onclose(); |
---|
54 | onclose = null; |
---|
55 | } |
---|
56 | } |
---|
57 | |
---|
58 | function updateSidebar(title, content) { |
---|
59 | $("sidebar_title").innerHTML = title; |
---|
60 | $("sidebar_content").innerHTML = content; |
---|
61 | } |
---|
62 | |
---|
63 | function sidebarOpen(title) { |
---|
64 | return $("sidebar").style.display == "block" && |
---|
65 | $("sidebar_title").innerHTML == title; |
---|
66 | } |
---|
67 | // --> |
---|
68 | </script> |
---|
69 | |
---|
70 | <script type="text/javascript"> |
---|
71 | <!-- |
---|
72 | function startSearch() { |
---|
73 | updateSidebar("Search Results", "<p class='search_results_entry'>Searching...</p>"); |
---|
74 | |
---|
75 | $("search_field").style.display = "none"; |
---|
76 | $("search_active").style.display = "inline"; |
---|
77 | } |
---|
78 | |
---|
79 | function endSearch() { |
---|
80 | $("search_field").style.display = "inline"; |
---|
81 | $("search_active").style.display = "none"; |
---|
82 | } |
---|
83 | |
---|
84 | function describeLocation() { |
---|
85 | var position = getPosition(); |
---|
86 | |
---|
87 | new Ajax.Request('/geocoder/description', {asynchronous:true, evalScripts:true, onComplete:function(request){endSearch()}, onLoading:function(request){startSearch()}, parameters:'lat=' + position.lat + '&lon=' + position.lon}) |
---|
88 | } |
---|
89 | |
---|
90 | |
---|
91 | // --> |
---|
92 | </script> |
---|
93 | |
---|
94 | |
---|
95 | |
---|
96 | |
---|
97 | |
---|
98 | |
---|
99 | |
---|
100 | |
---|
101 | |
---|
102 | |
---|
103 | |
---|
104 | |
---|
105 | <div id="map"> |
---|
106 | You need a Flash player to use Potlatch, the |
---|
107 | OpenStreetMap Flash editor, but you probably know that. :) |
---|
108 | </div> |
---|
109 | |
---|
110 | <script src="http://api06.dev.openstreetmap.org/javascripts/swfobject.js?1209006421" type="text/javascript"></script> |
---|
111 | <script type="text/javascript" defer="defer"> |
---|
112 | var brokenContentSize = $("content").offsetWidth == 0; |
---|
113 | var fo = new SWFObject("potlatch.swf?d="+Math.round(Math.random()*1000), "potlatch", "100%", "100%", "6", "#FFFFFF"); |
---|
114 | // 700,600 for fixed size, 100%,100% for resizable |
---|
115 | var changesaved=true; |
---|
116 | var winie=false; if (document.all && window.print) { winie=true; } |
---|
117 | |
---|
118 | window.onbeforeunload=function() { |
---|
119 | if (!changesaved && !winie) { |
---|
120 | return "You have unsaved changes. (To save in Potlatch, you should deselect the current way or point.)"; |
---|
121 | } |
---|
122 | } |
---|
123 | |
---|
124 | function doSWF(lat,lon,sc) { |
---|
125 | if (sc < 11) sc = 11; |
---|
126 | fo.addVariable('scale',sc); |
---|
127 | fo.addVariable('token','VeSiWDkofUzgLLx5DgAU4rh1Wn23ro'); |
---|
128 | if (lat) { fo.addVariable('lat',lat); } |
---|
129 | if (lon) { fo.addVariable('long',lon); } |
---|
130 | |
---|
131 | fo.write("map"); |
---|
132 | } |
---|
133 | |
---|
134 | doSWF(51.8722,-1.4678,13); |
---|
135 | |
---|
136 | function setPosition(lat, lon, zoom) { |
---|
137 | doSWF(lat, lon, zoom); |
---|
138 | } |
---|
139 | |
---|
140 | function resizeContent() { |
---|
141 | var content = $("content"); |
---|
142 | var rightMargin = parseInt(getStyle(content, "right")); |
---|
143 | var bottomMargin = parseInt(getStyle(content, "bottom")); |
---|
144 | |
---|
145 | content.style.width = document.documentElement.clientWidth - content.offsetLeft - rightMargin; |
---|
146 | content.style.height = document.documentElement.clientHeight - content.offsetTop - bottomMargin; |
---|
147 | } |
---|
148 | |
---|
149 | function resizeMap() { |
---|
150 | var sidebar_width = $("sidebar").offsetWidth; |
---|
151 | |
---|
152 | if (sidebar_width > 0) { |
---|
153 | sidebar_width = sidebar_width + 5 |
---|
154 | } |
---|
155 | |
---|
156 | $("map").style.left = (sidebar_width) + "px"; |
---|
157 | $("map").style.width = ($("content").offsetWidth - sidebar_width) + "px"; |
---|
158 | $("map").style.height = ($("content").offsetHeight - 2) + "px"; |
---|
159 | } |
---|
160 | |
---|
161 | function handleResize() { |
---|
162 | if (brokenContentSize) { |
---|
163 | resizeContent(); |
---|
164 | } |
---|
165 | |
---|
166 | resizeMap(); |
---|
167 | } |
---|
168 | |
---|
169 | handleResize(); |
---|
170 | |
---|
171 | window.onload = handleResize; |
---|
172 | window.onresize = handleResize; |
---|
173 | </script> |
---|
174 | |
---|
175 | |
---|
176 | </div> |
---|
177 | |
---|
178 | <span id="greeting"> |
---|
179 | |
---|
180 | Welcome, <a href="http://api06.dev.openstreetmap.org/user/Potlatch">Potlatch</a> dev :) | |
---|
181 | |
---|
182 | |
---|
183 | |
---|
184 | |
---|
185 | <a href="http://api06.dev.openstreetmap.org/user/Potlatch/inbox" style="font-weight: ;">inbox (0)</a> | |
---|
186 | <a href="http://api06.dev.openstreetmap.org/logout?referer=%2Fedit%3Flat%3D51.8722%26lon%3D-1.4678%26zoom%3D13" id="logoutanchor">logout</a> |
---|
187 | |
---|
188 | </span> |
---|
189 | |
---|
190 | <div> |
---|
191 | <ul id="tabnav"> |
---|
192 | |
---|
193 | <li><a href="http://api06.dev.openstreetmap.org/" class="" id="viewanchor" title="view maps">View</a></li> |
---|
194 | <li><a href="http://api06.dev.openstreetmap.org/edit" class="active" id="editanchor" title="edit maps">Edit</a></li> |
---|
195 | |
---|
196 | <li><a href="http://api06.dev.openstreetmap.org/export" class="" id="exportanchor" title="export map data">Export</a></li> |
---|
197 | |
---|
198 | <li><a href="http://api06.dev.openstreetmap.org/traces" class="" id="traceanchor" title="manage traces">GPS Traces</a></li> |
---|
199 | <li><a href="http://api06.dev.openstreetmap.org/diary" id="diaryanchor" title="view user diaries">User Diaries</a></li> |
---|
200 | </ul> |
---|
201 | </div> |
---|
202 | |
---|
203 | <div id="left"> |
---|
204 | |
---|
205 | <div id="logo"> |
---|
206 | <center> |
---|
207 | <h1>OpenStreetMap</h1> |
---|
208 | <a href="http://api06.dev.openstreetmap.org/"><img alt="Osm_logo" border="0" height="120" src="http://api06.dev.openstreetmap.org/images/osm_logo.png?1209006422" width="120" /></a><br/> |
---|
209 | <h2 class="nowrap">The Free Wiki World Map</h2> |
---|
210 | </center> |
---|
211 | </div> |
---|
212 | |
---|
213 | |
---|
214 | |
---|
215 | |
---|
216 | |
---|
217 | <div id="left_menu" class="left_menu"> |
---|
218 | <a href="http://wiki.openstreetmap.org">Help & Wiki</a><br /> |
---|
219 | <a href="http://www.opengeodata.org/">News blog</a><br /> |
---|
220 | <a href="http://wiki.openstreetmap.org/index.php/Merchandise">Shop</a><br /> |
---|
221 | |
---|
222 | </div> |
---|
223 | |
---|
224 | <div id="sotm" class="left_menu"> |
---|
225 | <div id="sotminfo"> |
---|
226 | Come to the second OpenStreetMap Conference, <a href="http://www.stateofthemap.org">The State of the Map</a>: 12th-13th July 2008, Limerick, Ireland. |
---|
227 | </div> |
---|
228 | </div> |
---|
229 | |
---|
230 | |
---|
231 | <div class="optionalbox"> |
---|
232 | <span class="oboxheader">Search</span> |
---|
233 | <span class="whereami"><a href="javascript:describeLocation()">Where am I?</a></span> |
---|
234 | <div class="search_form"> |
---|
235 | <span id="search_field"> |
---|
236 | <form action="/geocoder/search" method="post" onsubmit="new Ajax.Request('/geocoder/search', {asynchronous:true, evalScripts:true, onComplete:function(request){endSearch()}, onLoading:function(request){startSearch()}, parameters:Form.serialize(this)}); return false;"> |
---|
237 | <input id="query" name="query" type="text" value="" /> |
---|
238 | </form> |
---|
239 | </span> |
---|
240 | <p id="search_active">Searching...</p> |
---|
241 | </div> |
---|
242 | <p class="search_help"> |
---|
243 | examples: 'Alkmaar', 'Regent Street, Cambridge', 'CB2 5AQ', |
---|
244 | or 'post offices near Lünen' |
---|
245 | <a href="http://wiki.openstreetmap.org/index.php/Search">more examples...</a> |
---|
246 | </p> |
---|
247 | </div> |
---|
248 | |
---|
249 | </div> |
---|
250 | </body> |
---|
251 | </html> |
---|