summaryrefslogtreecommitdiff
path: root/libs/js/jquery-geo-1.0a4/docs/geo/contains.html
diff options
context:
space:
mode:
Diffstat (limited to 'libs/js/jquery-geo-1.0a4/docs/geo/contains.html')
-rwxr-xr-xlibs/js/jquery-geo-1.0a4/docs/geo/contains.html62
1 files changed, 0 insertions, 62 deletions
diff --git a/libs/js/jquery-geo-1.0a4/docs/geo/contains.html b/libs/js/jquery-geo-1.0a4/docs/geo/contains.html
deleted file mode 100755
index b35b1d8f..00000000
--- a/libs/js/jquery-geo-1.0a4/docs/geo/contains.html
+++ /dev/null
@@ -1,62 +0,0 @@
-<!doctype html>
-
-<html lang="en" class="no-js">
-<head>
- <meta charset="utf-8">
-
- <title>contains | $.geo</title>
- <meta name="description" content="jQuery Geo contains 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.0/jquery.mobile-1.0.min.css" />
-</head>
-
-<body>
-
- <div id="contains" data-role="page">
- <div data-role="header" data-theme="b">
- <h1>contains</h1>
- </div>
-
- <div data-role="content">
- <table>
- <tr>
- <th>return type</th>
- <td>Boolean</td>
- </tr>
- <tr>
- <th>syntax</th>
- <td>$.geo.contains( Object shape1 ( <a href="http://geojson.org/geojson-spec.html" rel="external">GeoJSON object</a> ), Object shape2 ( <a href="http://geojson.org/geojson-spec.html" rel="external">GeoJSON object</a> ) )</td>
- </tr>
- <tr>
- <th>usage</th>
- <td><pre><code>var contains = $.geo.contains(
- {
- type: "Polygon", coordinates: [[
- [-71.06, 42.3425],
- [-71.06, 42.3475],
- [-71.04, 42.3475],
- [-71.04, 42.3425],
- [-71.06, 42.3425]
- ]]
- },
- { type: &quot;Point&quot;, &quot;coordinates&quot;: [ -71, 40 ] }
-)</pre></code></td>
- </tr>
- </table>
- <p>The contains method determines if the first basic GeoJSON geometry completely contains a second one. The basic shapes are Point, LineString and Polygon however Point and LineString geometries cannot contain other geometries so the only situation that has a possibility of returning true is when the first argument is a Polygon.</p>
- <p>If either argument is not a basic GeoJSON geometry object, this function returns undefined.</p>
- <p>This function is similar to Geometry.contains in JTS.</p>
- </div>
- </div> <!-- end of #container -->
-
- <script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
- <script src="http://code.jquerygeo.com/jquery.geo-1.0a4.min.js"></script>
- <script src="../js/script.js"></script>
- <script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
-</body>
-</html>
-