/
dblclick.html
115 lines (102 loc) · 3.98 KB
/
dblclick.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>Polymaps - Documentation - dblclick</title>
<script type="text/javascript" src="../modernizr.min.js?1.5"></script>
<script type="text/javascript" src="../polymaps.min.js?2.0.0"></script>
<script type="text/javascript" src="../nns.min.js?1.1.0"></script>
<style type="text/css">
@import url("../screen.css?0.9");
@import url("../style.css?2.0.0");
</style>
</head>
<body>
<div class="container">
<hr class="space"/>
<div class="span-5 append-1 logo sidebar">
<a href="../">
<img src="../logo-small.png"/>
<script type="text/javascript" src="../logo-small.js"></script>
</a>
<hr class="space"/>
<h4>Core</h4>
<ul class="no-indent">
<li><a href="map.html">map</a></li>
<li><a href="layer.html">layer</a></li>
<li><a href="image.html">image</a></li>
<li><a href="geoJson.html">geoJson</a></li>
</ul>
<h4>Controls</h4>
<ul class="no-indent">
<li><a href="arrow.html">arrow</a></li>
<li><a href="compass.html">compass</a></li>
<li><a class="active" href="dblclick.html">dblclick</a></li>
<li><a href="drag.html">drag</a></li>
<li><a href="hash.html">hash</a></li>
<li><a href="interact.html">interact</a></li>
<li><a href="wheel.html">wheel</a></li>
</ul>
<h4><i>Et cetera</i></h4>
<ul class="no-indent">
<li><a href="cache.html">cache</a></li>
<li><a href="dispatch.html">dispatch</a></li>
<li><a href="queue.html">queue</a></li>
<li><a href="svg.html">svg</a></li>
<li><a href="transform.html">transform</a></li>
<li><a href="url.html">url</a></li>
</ul>
</div>
<div class="span-18 prepend-6 last top">
<a href="../">Overview</a>
<a href="../ex/">Examples</a>
<a class="active" href="./">Documentation</a>
<a href="../download.html">Download</a>
</div>
<hr class="space"/>
<div class="span-18 prepend-6 last">
<h2>dblclick</h2>
<div class="span-4">
<a href="#po.dblclick">dblclick</a><br>
</div>
<div class="span-4">
<a href="#map">map</a><br>
</div>
<hr class="space"/>
<dl class="function" id="po.dblclick">
<dt>
<i>po</i>.<b>dblclick</b>()
</dt>
<dd>
Constructs a double-click control with default settings. This
control allows the user to double-click to zoom in on the given
point, and shift-double-click to zoom out. The double-click snaps to
the nearest integral zoom level, providing optimal display of tiles.
</dd>
</dl>
<dl class="function" id="map">
<dt>
<i>dblclick</i>.<b>map</b>([<i>x</i>])
</dt>
<dd>
<p>Adds this control to the specified map <i>x</i>, removes this
control from its current map, or returns the current map. This
method is typically not called directly, but is needed to support
the map’s <a href="map.html#add">add</a> method and <a
href="map.html#remove">remove</a> methods.</p>
<p>If the argument <i>x</i> is specified, this method returns
<tt>this</tt>. If <i>x</i> is null, this control is removed from its
current map; otherwise, this control is added to the specified map.
If no arguments are specified, this method returns the current map,
which may be null. Whew!</p>
</dd>
</dl>
</div>
<div class="span-5 append-1 credits">
Polymaps is a project
from <a class="bold" href="http://simplegeo.com/">SimpleGeo</a>
and <a class="bold" href="http://stamen.com/">Stamen</a>.
</div>
</div>
</body>
</html>