/
DirectionsSimple.html
53 lines (45 loc) · 1.18 KB
/
DirectionsSimple.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
<html>
<head>
<meta name="pygwt:module" content="DirectionsSimple">
<title>pyjamas.gmaps example - Directions Simple</title>
</head>
<body bgcolor="white">
<script language="javascript" src="bootstrap.js"></script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script language="javascript">
function dumpObj(obj, indent){
if (! indent) {indent="";}
res=""
if (typeof obj == "object") {
if (obj instanceof Array)
{
res+=indent+"[\n"
for (var i = 0; i < obj.length; i++)
{
res+=dumpObj(obj[i],indent+" ")
}
res+=indent+"]\n"
}
else
{
res+=indent+"{\n"
for (var item in obj)
{
try {
child = obj[item];
}
catch (e) {
child = "<Unable to Evaluate>";
}
res+=indent+" "+item+":\n"+dumpObj(child,indent+" ")
}
res+=indent+"}\n"
}
}else if (typeof obj != "function"){
res=indent+""+obj+"\n"
}
return res;
}
</script>
</body>
</html>