Revert "Export"
[platform/framework/web/web-ui-fw.git] / libs / js / jquery-geo-1.0a4 / docs / geo / center.html
1 <!doctype html>  
2
3 <html lang="en" class="no-js">
4 <head>
5   <meta charset="utf-8">
6
7   <title>center | $.geo</title>
8   <meta name="description" content="jQuery Geo center method">
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="center" data-role="page">
20     <div data-role="header" data-theme="b">
21       <h1>center</h1>
22     </div>
23     
24     <div data-role="content">
25       <table>
26         <tr>
27           <th>return type</th>
28           <td>Array ( <a href="http://geojson.org/geojson-spec.html#positions" rel="external">GeoJSON position</a> ) </td>
29         </tr>
30         <tr>
31           <th>syntax</th>
32           <td>$.geo.center( Array bbox ( <a href="http://geojson.org/geojson-spec.html#bounding-boxes" rel="external">GeoJSON bounding box</a> ) )</td>
33         </tr>
34         <tr>
35           <th>usage</th>
36           <td><pre><code>var bboxCenter = $.geo.center( bbox )</code></pre></td>
37         </tr>
38       </table>
39       <p>The center method calculates the center of a bbox and returns it as a GeoJSON position.</p>
40       <p>It operates on bounding boxes and should not be confused with the centroid function, which operates on GeoJSON geometry objects.</p>
41       <p>This function is called Envelope.centre in JTS (I assume because JTS is built in British Columbia).</p>
42     </div>
43   </div> <!-- end of #container -->
44
45   <script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
46   <script src="http://code.jquerygeo.com/jquery.geo-1.0a4.min.js"></script>
47   <script src="../js/script.js"></script>
48   <script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
49 </body>
50 </html>
51