/usr/share/doc/libjs-jquery-geo-doc/html/geomap/zoommethod.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 61 62 63 | <!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<title>zoom | geomap</title>
<meta name="description" content="geomap zoom method">
<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="zoomMethod" data-role="page">
<div data-role="header" data-theme="e">
<h1>zoom</h1>
</div>
<div data-role="content">
<table>
<tr>
<th>return type</th>
<td>undefined</td>
</tr>
<tr>
<th>syntax</th>
<td>.geomap( "zoom", Number numberOfLevels )</td>
</tr>
<tr>
<th>usage</th>
<td><pre><code>$("#map").geomap( "zoom", 1 )
$("#map").geomap( "zoom", -2 )</code></pre></td>
</tr>
</table>
<p>The zoom method can zoom the map in or out by a given number of zoom levels. Positive values zoom the map in, negative values zoom the map out.</p>
<p>This method will not zoom out beyond zoom level 0. If you are using a tiling scheme, this method will not zoom in past the maximum number of zoom levels defined in the tilingScheme property.</p>
<p>This method accepts values <b>relative</b> to the map's current zoom level. This is different than the zoom property, which <b>is</b> the map's current zoom level.
It might be useful to add an explicit plus sign when using this zoom method.</p>
<pre><code>// set the map to zoom level 2
$("#map").geomap( "option", "zoom", 2 );
// zoom the map in 2 levels from its current zoom
$("#map").geomap( "zoom", +2 );</code></pre>
<p>This method does not trigger events, not even bboxchange.</p>
<p>There is no default value. Passing null or undefined will not change the map's zoom.</p>
</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>
|