-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.gml
61 lines (52 loc) · 1.71 KB
/
index.gml
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
<gm:page title="Mashup" css="/css/g.css" class="googleTheme" onload="onLoadf()">
<!-- -->
<div class="gm-app-header">
<table>
<tr>
<td width="200"><h1>Mashup</h1></td>
</tr>
</table>
</div>
<table width="900">
<tr valign="top">
<td width="300">
<div style="float: left; width: 50%">
<gm:list id="myList" data="http://aruhela.googlepages.com/amit10.xml" pagesize="8">
<gm:handleEvent src="myMap" event="select"/>
</gm:list>
</div>
</td>
<td class="mainPanel">
<div style="float: left; width: 100%">
<gm:map id="myMap" zoom="12" control="large" maptypes="true" height="500px" data="${myList}" latref="geo:lat" lngref="geo:long" infotemplate="detailTemplate" >
<gm:handleEvent src="myList" event="select"/>
</gm:map>
</div>
</td>
</tr>
</table>
<script type="text/javascript">
<![CDATA[
function onLoadf() {
if (document.namespaces)
{
// only exists in IE, only needed in IE
document.namespaces.add("v", "urn:schemas-microsoft-com:vml"); }
var myTMap = google.mashups.getObjectById('myMap').getMap();
setMap(myTMap);
}
function setMap(map) {
map.enableDoubleClickZoom();
map.enableContinuousZoom();
map.setMapType(G_HYBRID_MAP);
}
]]></script>
<gm:template id="detailTemplate">
<div repeat="true">
<b><gm:text ref="atom:title"/></b><br/>
<gm:text ref="geo:lat"/><br/>
<gm:text ref="geo:long"/>
<gm:image ref="atom:image" style="margin-right:5px" width="100" height="100" /> </div>
<gm:labels ref="atom:label"/>
</gm:template>
</gm:page>