da61d2706332ea41ad374286e063cd9ad4f5bd33
[framework/web/web-ui-fw.git] / libs / js / jquery-geo-1.0a4 / docs / geomap / bboxMax.html
1 <!doctype html>  
2
3 <html lang="en" class="no-js">
4 <head>
5   <meta charset="utf-8">
6
7   <title>bboxMax | geomap</title>
8   <meta name="description" content="geomap bboxMax property">
9   <meta name="author" content="Ryan Westphal">
10
11   <meta name="viewport" content="width=device-width, initial-scale=1.0">
12
13   <link rel="stylesheet" href="../css/style.css?v=2">
14   <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" />
15 </head>
16
17 <body>
18
19   <div id="bboxMax" data-role="page">
20     <div data-role="header" data-theme="f">
21       <h1>bboxMax</h1>
22     </div>
23     
24     <div data-role="content">
25       <table>
26         <tr>
27           <th>type</th>
28           <td>Array ( <a href="http://geojson.org/geojson-spec.html#bounding-boxes" rel="external">GeoJSON bounding box</a> )</td>
29         </tr>
30         <tr>
31           <th>default</th>
32           <td>[ -180, -85, 180, 85 ]</td>
33         </tr>
34         <tr>
35           <th>init</th>
36           <td><code><pre>$( <i>selector</i> ).geomap( { bboxMax: [ -71, 40, -69, 44 ] } );</pre></code></td>
37         </tr>
38         <tr>
39           <th>get</th>
40           <td><code><pre>var bboxMax = $( <i>selector</i> ).geomap( &quot;option&quot;, &quot;bboxMax&quot; );</pre></code></td>
41         </tr>
42         <tr>
43           <th>set</th>
44           <td><code><pre>$( <i>selector</i> ).geomap( &quot;option&quot;, &quot;bboxMax&quot;, [ -75.696, 38.804, -73.696, 41.287 ] );</pre></code></td>
45         </tr>
46       </table>
47       <p>The bboxMax property calculates or modifies a bounding box that surrounds all of the data you wish to show in the map. Users can pan the map once they reach bboxMax but cannot zoom out further.</p>
48       <p>This property is a JavaScript array consisting of four values which can be thought of as: minx, miny, maxx and maxy of the maximum map view you wish to allow in map units and in that order.</p>
49       <p>Setting a new bboxMax will not refresh the map services.</p>
50       <p>A bboxMax property must be set properly for shinged (dynamic) services if you wish to use the zoom property since the value of the map's zoom is based on a ratio between the current bbox and bboxMax. If you have a fully dynamic map by setting tilingScheme to null, you should explicitly set bboxMax.</p>
51     </div>
52   </div> <!-- end of #container -->
53
54   <script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
55   <script src="http://code.jquerygeo.com/jquery.geo-1.0a4.min.js"></script>
56   <script src="../js/script.js"></script>
57   <script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
58 </body>
59 </html>
60