create new ways w00t! and extend old ones
[potlatch2.git] / resources / halcyon.html
1 <html>
2
3 <!-- Halcyon example embed script -->
4
5 <head>
6 <title>Halcyon</title>
7 <script type="text/javascript" src="swfobject.js"></script>
8 </head>
9
10 <body>
11
12 <div id="map" style="width:800px; height: 600px; border: 1px solid black">
13 </div>
14
15 <script>
16
17         function respond(event,object,id,attr) {
18                 alert (event+": "+object+" "+id+", highway="+attr['highway']);
19         }
20
21         var fo = new SWFObject("halcyon_viewer.swf?d="+Math.round(Math.random()*1000), "map", "100%", "100%", "9", "#FFFFFF");
22         fo.addVariable("lat",51.875);
23         fo.addVariable("lon",-1.482);
24         fo.addVariable("zoom",16);
25         fo.addVariable("api","http://www.openstreetmap.org/api/0.6/");
26         fo.addVariable("policy","http://www.openstreetmap.org/api/crossdomain.xml");
27         fo.addVariable("connection","AMF");
28         fo.addVariable("responder","respond");
29         fo.addVariable("style","test.css");
30         fo.addVariable("show_debug","false");
31         fo.write("map");
32
33 </script>
34
35 </body>
36 </html>