/usr/share/doc/libjs-jquery-geo-doc/html/geomap/geomapdblclick.html is in libjs-jquery-geo-doc 1.0~b1+ds1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | <!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<title>dblclick | geomap</title>
<meta name="description" content="geomap dblclick event">
<meta name="author" content="Ryan Westphal">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../css/style.css?v=2">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css" />
</head>
<body>
<div id="dblclick" data-role="page">
<div data-role="header" data-theme="a">
<h1>dblclick</h1>
</div>
<div data-role="content">
<table>
<tr>
<th>type</th>
<td>position</td>
</tr>
<tr>
<th>init</th>
<td><code><pre>$( <i>selector</i> ).geomap( {
dblclick: function( e, geo ) { }
} );</pre></code></td>
</tr>
<tr>
<th>bind</th>
<td><code><pre>$( <i>selector</i> ).bind( "geomapdblclick", function( e, geo ) { } );
} );</pre></code></td>
</tr>
</table>
<p>The dblclick event triggers when the user double-clicks or double-taps a point on the map. However, it only triggers if the user is not currently performing some other action which might be handled internally by the widget.</p>
<p>The geo argument is a <a href="http://geojson.org/geojson-spec.html#point" rel="external">GeoJSON Point</a> object of the clicked location in map coordinates.</p>
<p>The default action for a double-click/tap is to zoom the map in one level. However, as a developer you can override this by calling e.preventDefault() in your callback.</p>
<code><pre>$( "#map" ).geomap( {
dblclick: function( e, geo ) { e.preventDefault(); }
} );</pre></code>
</div>
</div> <!-- end of #container -->
<script src="/usr/share/javascript/jquery/jquery.min.js"></script>
<script src="/usr/share/javascript/excanvas/excanvas.min.js"></script>
<script src="/usr/share/javascript/jsrender/jsrender.min.js"></script>
<script src="/usr/share/javascript/jquery-mousewheel/jquery.mousewheel.min.js"></script>
<script src="/usr/share/javascript/jquery-ui/ui/jquery.ui.widget.min.js"></script>
<script src="/usr/share/javascript/jquery-geo/jquery.geo.full.min.js"></script>
<script src="../js/script.js"></script>
<script src="/usr/share/javascript/jquery-mobile/jquery-mobile.min.js"></script>
</body>
</html>
|