3 <html lang="en" class="no-js">
7 <title>width | $.geo</title>
8 <meta name="description" content="jQuery Geo width 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.1.0/jquery.mobile-1.1.0.min.css" />
19 <div id="width" data-role="page">
20 <div data-role="header" data-theme="b">
24 <div data-role="content">
32 <td>$.geo.width( Array bbox ( <a href="http://geojson.org/geojson-spec.html#bounding-boxes" rel="external">GeoJSON bounding box</a> )</td>
36 <td><pre><code>var width = $.geo.width( [ -71.1, 42.3, -71.0, 42.4 ] )</pre></code></td>
39 <p>The width method returns the true width of a bbox in non-geodetic units. If you are using geomap with its default map service, the width is in meters because the default projection is web mercator meters.</p>
40 <p>This function is similar to Envelope.getWidth in JTS.</p>
42 </div> <!-- end of #container -->
44 <script src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
45 <script src="http://code.jquerygeo.com/jquery.geo-1.0b1.min.js"></script>
46 <script src="../js/script.js"></script>
47 <script src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script>