Skip to content

Commit 2fef299

Browse files
committed
New feature: Fusion Tables (fix example)
1 parent 30f9586 commit 2fef299

File tree

1 file changed

+10
-29
lines changed

1 file changed

+10
-29
lines changed

examples/fusion_tables.html

Lines changed: 10 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<meta charset="utf-8">
5-
<title>GMaps.js &mdash; Custom controls</title>
5+
<title>GMaps.js &mdash; Fusion Tables layers</title>
66
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
77
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>
88
<script type="text/javascript" src="../gmaps.js"></script>
@@ -32,45 +32,26 @@
3232
</script>
3333
</head>
3434
<body>
35-
<h1>GMaps.js &mdash; Custom controls</h1>
35+
<h1>GMaps.js &mdash; Fusion Tables layers</h1>
3636
<div class="row">
3737
<div class="span11">
3838
<div id="map"></div>
3939
</div>
4040
<div class="span6">
41-
<p>GMaps.js allows to add custom controls:</p>
42-
<pre>map.addControl({
43-
position: 'top_right',
44-
text: 'Geolocate',
45-
style: {
46-
margin: '5px',
47-
padding: '1px 6px',
48-
border: 'solid 1px #717B87',
49-
background: '#fff'
41+
<p>GMaps.js allows to add Fusion Table layers:</p>
42+
<pre>map.getFromFusionTables({
43+
query: {
44+
select: '\'Geocodable address\'',
45+
from: '1mZ53Z70NsChnBMm-qEYmSDOvLXgrreLTkQUvvg'
5046
},
5147
events: {
52-
click: function(){
53-
console.log(this);
48+
click: function(marker){
49+
console.log(marker);
5450
}
5551
}
5652
});</pre>
5753
<p>
58-
<span class="label notice">Note</span> You can use the following positions:
59-
<ul>
60-
<li>top_center</li>
61-
<li>top_left</li>
62-
<li>top_right</li>
63-
<li>left_top</li>
64-
<li>right_top</li>
65-
<li>left_center</li>
66-
<li>right_center</li>
67-
<li>left_bottom</li>
68-
<li>right_bottom</li>
69-
<li>bottom_center</li>
70-
<li>bottom_left</li>
71-
<li>bottom_right</li>
72-
</ul>
73-
You can learn more of custom controls <a href="https://developers.google.com/maps/documentation/javascript/controls">here</a>.</p>
54+
<span class="label notice">Note</span> You can learn more about Fusion Table layers <a href="https://developers.google.com/maps/documentation/javascript/layers#FusionTables">here</a>.</p>
7455
</div>
7556
</div>
7657
</body>

0 commit comments

Comments
 (0)