3 <html lang="en" class="no-js">
7 <title>recenter | $.geo</title>
8 <meta name="description" content="jQuery Geo recenter method">
9 <meta name="author" content="Ryan Westphal">
11 <meta name="viewport" content="width=device-width, initial-scale=1.0">
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" />
19 <div id="recenter" data-role="page">
20 <div data-role="header" data-theme="b">
24 <div data-role="content">
28 <td>Array ( <a href="http://geojson.org/geojson-spec.html#bounding-boxes" rel="external">GeoJSON bounding box</a> ) </td>
32 <td>$.geo.recenter( Array bbox ( <a href="http://geojson.org/geojson-spec.html#bounding-boxes" rel="external">GeoJSON bounding box</a> ), Array (<a href="http://geojson.org/geojson-spec.html#positions" rel="external">GeoJSON position</a>) )</td>
36 <td><pre><code>var moved = $.geo.recenter( bbox, [ -70, 42 ] )</pre></code></td>
40 <p>The recenter method creates a new bbox with the same width and height as the original but moving the center to a new location.</p>
42 <p>This function is not defined in JTS.</p>
44 </div> <!-- end of #container -->
46 <script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
47 <script src="http://code.jquerygeo.com/jquery.geo-1.0a4.min.js"></script>
48 <script src="../js/script.js"></script>
49 <script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>