{"_id":"leaflet-pip","_rev":"118-6c2a12a3072a07ee0ad23c855d3beac4","name":"leaflet-pip","description":"point in polygon searches for leaflet","dist-tags":{"latest":"1.1.0"},"versions":{"0.0.1":{"name":"leaflet-pip","version":"0.0.1","description":"point in polygon searches for leaflet","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":"","keywords":["leaflet","plugin","point","in","polygon","geo","geographical"],"devDependencies":{"mocha":"~1.8","expect.js":"~0.2.0"},"testling":{"browsers":{"ie":[8,9,10],"opera":[12],"firefox":[3.5,6,7,15,16,17,18,19],"chrome":[23,24,25],"safari":[5.1,6],"iphone":[6]},"harness":"mocha","files":["test/support/leaflet.js"]},"author":{"name":"Tom MacWright","email":"tom@macwright.org"},"license":"BSD","dependencies":{"point-in-polygon":"0.0.0"},"_id":"leaflet-pip@0.0.1","dist":{"shasum":"698b9a9211728e2fc475c35e3fe82dd3f1e6d470","tarball":"https://registry.npmjs.org/leaflet-pip/-/leaflet-pip-0.0.1.tgz","integrity":"sha512-twqfqtqiqSdzeKIMjzj6quRAUzzgs1NsB3ReG114tP+6xcILFkjtSvngrjQhbMTb3eMmLh9IUexQLuAnqonnlQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFBqvL8DkfwcBQTZyVbDkDTaE8Hkyx5t7rObb8PzXcpiAiEAyuZ+Qy3JX4XcjPvRfmyx4Umkj5ffNxqaPE9KecvZiNY="}]},"_from":".","_npmVersion":"1.2.11","_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"maintainers":[{"name":"tmcw","email":"tom@macwright.org"}],"deprecated":"This module is now under the @mapbox namespace: install @mapbox/leaflet-pip instead","directories":{}},"0.0.2":{"name":"leaflet-pip","version":"0.0.2","description":"point in polygon searches for leaflet","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":"","keywords":["leaflet","plugin","point","in","polygon","geo","geographical"],"devDependencies":{"mocha":"~1.8","expect.js":"~0.2.0"},"testling":{"browsers":{"ie":[8,9,10],"opera":[12],"firefox":[3.5,6,7,15,16,17,18,19],"chrome":[23,24,25],"safari":[5.1,6],"iphone":[6]},"harness":"mocha","files":["test/support/leaflet.js"]},"author":{"name":"Tom MacWright","email":"tom@macwright.org"},"license":"BSD","dependencies":{"point-in-polygon":"0.0.0"},"_id":"leaflet-pip@0.0.2","dist":{"shasum":"b7d78fe23d1d68fe9c14b1a4af700c0118bd94dd","tarball":"https://registry.npmjs.org/leaflet-pip/-/leaflet-pip-0.0.2.tgz","integrity":"sha512-bzQFvGkoCFaCt4jCGiXm8upY7aNPrK8fQde7XCFcf1BzP0oSG60wfsqhOH7Fae7ngOxVAyBz9PBBmg4WdC2RgQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBZmWpaZe4bMl+wtEivxVrX32xP95JS/cjUS+jhR6TzpAiEAxkFNTXjx+MPiZtbZzb3+aOVUL/QClffAimsK7Fdv8WU="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"maintainers":[{"name":"tmcw","email":"tom@macwright.org"}],"deprecated":"This module is now under the @mapbox namespace: install @mapbox/leaflet-pip instead","directories":{}},"0.1.0":{"name":"leaflet-pip","version":"0.1.0","description":"point in polygon searches for leaflet","main":"index.js","scripts":{"test":"browserify test/*.js | tape-run","build":"browserify -s leafletPip index.js > leaflet-pip.js && uglifyjs leaflet-pip.js -c -m > leaflet-pip.min.js"},"keywords":["leaflet","plugin","point","in","polygon","geo","geographical"],"repository":{"type":"git","url":"git://github.com/mapbox/leaflet-pip.git"},"devDependencies":{"tape":"~2.13.3","tape-run":"~0.1.1","leaflet":"~0.7.3","phantomjs":"~1.9.7-9","browserify":"~4.1.11"},"author":{"name":"Tom MacWright","email":"tom@macwright.org"},"license":"ISC","dependencies":{"geojson-utils":"~1.1.0"},"bugs":{"url":"https://github.com/mapbox/leaflet-pip/issues"},"homepage":"https://github.com/mapbox/leaflet-pip","_id":"leaflet-pip@0.1.0","dist":{"shasum":"c89e6646fbb94ffccecaf740b1ae59b03fc5ea21","tarball":"https://registry.npmjs.org/leaflet-pip/-/leaflet-pip-0.1.0.tgz","integrity":"sha512-A/BeWBSQSHRG2pTAroSJ+fC/BkgApjlmPAX1wTpVUjZS7clvGhMSQn4U3cco9h6rWCerTH+1hNeIBfJc0xoH3g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFv0Mrc6Nm+TWvXXE7GM3qyWSedSE4f/Xm8SWiWFVGfNAiBcxG2I6Yo8uC5WB4Sj+JbKvYkoSJtHQwuvzTbLg+YzTA=="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"maintainers":[{"name":"tmcw","email":"tom@macwright.org"}],"deprecated":"This module is now under the @mapbox namespace: install @mapbox/leaflet-pip instead","directories":{}},"0.1.1":{"name":"leaflet-pip","version":"0.1.1","description":"point in polygon searches for leaflet","main":"index.js","scripts":{"test":"browserify test/*.js | tape-run","build":"browserify -s leafletPip index.js > leaflet-pip.js && uglifyjs leaflet-pip.js -c -m > leaflet-pip.min.js"},"keywords":["leaflet","plugin","point","in","polygon","geo","geographical"],"repository":{"type":"git","url":"git://github.com/mapbox/leaflet-pip.git"},"devDependencies":{"tape":"~2.13.3","tape-run":"~0.1.1","leaflet":"~0.7.3","phantomjs":"~1.9.7-9","browserify":"~4.1.11"},"author":{"name":"Tom MacWright","email":"tom@macwright.org"},"license":"ISC","dependencies":{"geojson-utils":"~1.1.0"},"bugs":{"url":"https://github.com/mapbox/leaflet-pip/issues"},"homepage":"https://github.com/mapbox/leaflet-pip","_id":"leaflet-pip@0.1.1","dist":{"shasum":"515ab9d41b0408fa26e3ef33d44ef98e3dfa640c","tarball":"https://registry.npmjs.org/leaflet-pip/-/leaflet-pip-0.1.1.tgz","integrity":"sha512-g5NORBj5uknKyGn5CTE95W6CE8JHfGldsuBu4p0cD+uD0vvh0GN4ZKrFki8c/9aRGaFmq1WMILVtLa4z8epHbw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFY5P8QLF8j8IARW+VqjFLi29fVF9x3zVkbVzZmHczfsAiAUs9u0MfPf6HGtXpThabRNPVW0jpQolWOhB030sxxxHw=="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"maintainers":[{"name":"tmcw","email":"tom@macwright.org"},{"name":"lxbarth","email":"alex@developmentseed.org"},{"name":"mikemorris","email":"michael.patrick.morris@gmail.com"},{"name":"ianshward","email":"ian@mapbox.com"},{"name":"mourner","email":"agafonkin@gmail.com"},{"name":"tristen","email":"tristen.brown@gmail.com"},{"name":"ingalls","email":"nicholas.ingalls@gmail.com"},{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},{"name":"ansis","email":"ansis.brammanis@gmail.com"},{"name":"jfirebaugh","email":"john.firebaugh@gmail.com"},{"name":"miccolis","email":"jeff@miccolis.net"},{"name":"gretacb","email":"carol@mapbox.com"},{"name":"aaronlidman","email":"aaronlidman@gmail.com"},{"name":"camilleanne","email":"camille@mapbox.com"},{"name":"rclark","email":"ryan.clark.j@gmail.com"},{"name":"mapbox","email":"accounts@mapbox.com"},{"name":"willwhite","email":"will@mapbox.com"},{"name":"springmeyer","email":"dane@mapbox.com"},{"name":"kkaefer","email":"kkaefer@gmail.com"},{"name":"dthompson","email":"dthompson@gmail.com"},{"name":"yhahn","email":"young@developmentseed.org"}],"deprecated":"This module is now under the @mapbox namespace: install @mapbox/leaflet-pip instead","directories":{}},"1.0.0":{"name":"leaflet-pip","version":"1.0.0","description":"point in polygon searches for leaflet","main":"index.js","scripts":{"test":"eslint index.js && browserify test/*.js | tape-run","build-site":"browserify site/site.js > site/bundle.js","prepublish":"browserify -s leafletPip index.js > leaflet-pip.js && uglifyjs leaflet-pip.js -c -m > leaflet-pip.min.js"},"files":["index.js","leaflet-pip.js","leaflet-pip.min.js"],"keywords":["leaflet","plugin","point","in","polygon","geo","geographical"],"repository":{"type":"git","url":"git://github.com/mapbox/leaflet-pip.git"},"devDependencies":{"browserify":"~13.0.1","eslint":"^2.2.0","leaflet":"~0.7.3","phantomjs":"~2.1.7","tape":"~4.5.1","tape-run":"~2.1.4"},"author":{"name":"Tom MacWright","email":"tom@macwright.org"},"license":"ISC","dependencies":{"geojson-utils":"~1.1.0"},"gitHead":"a05e3a2f93976c95f9c42d1cf72f271486f941ee","bugs":{"url":"https://github.com/mapbox/leaflet-pip/issues"},"homepage":"https://github.com/mapbox/leaflet-pip#readme","_id":"leaflet-pip@1.0.0","_shasum":"b712f24699ac7220672eea80a35292eb19a41aeb","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"dist":{"shasum":"b712f24699ac7220672eea80a35292eb19a41aeb","tarball":"https://registry.npmjs.org/leaflet-pip/-/leaflet-pip-1.0.0.tgz","integrity":"sha512-JCsWDPjDlLbKif3RyLZ3SDkikVUxtFwkrMstC132HLHt5MjennFyjufwf6H6+RMGI5HhFUghAI1On4IGQlLrdg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEYoVRfNT2qnkbhOJzqhOl79UjXCCQpU+Qrh5Fy5CowzAiAqCkBJXCTEjdeADOotib9kiolI4DX78BQxf8CNigMVxQ=="}]},"maintainers":[{"name":"aaronlidman","email":"aaronlidman@gmail.com"},{"name":"ansis","email":"ansis.brammanis@gmail.com"},{"name":"camilleanne","email":"camille@mapbox.com"},{"name":"dthompson","email":"dthompson@gmail.com"},{"name":"gretacb","email":"carol@mapbox.com"},{"name":"ianshward","email":"ian@mapbox.com"},{"name":"ingalls","email":"nicholas.ingalls@gmail.com"},{"name":"jfirebaugh","email":"john.firebaugh@gmail.com"},{"name":"kkaefer","email":"kkaefer@gmail.com"},{"name":"lxbarth","email":"alex@mapbox.com"},{"name":"mapbox-admin","email":"accounts@mapbox.com"},{"name":"miccolis","email":"jeff@miccolis.net"},{"name":"mikemorris","email":"michael.patrick.morris@gmail.com"},{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},{"name":"mourner","email":"agafonkin@gmail.com"},{"name":"rclark","email":"ryan.clark.j@gmail.com"},{"name":"springmeyer","email":"dane@mapbox.com"},{"name":"tmcw","email":"tom@macwright.org"},{"name":"tristen","email":"tristen.brown@gmail.com"},{"name":"willwhite","email":"will@mapbox.com"},{"name":"yhahn","email":"young@mapbox.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/leaflet-pip-1.0.0.tgz_1472823551200_0.07325384952127934"},"deprecated":"This module is now under the @mapbox namespace: install @mapbox/leaflet-pip instead","directories":{}},"1.1.0":{"name":"leaflet-pip","version":"1.1.0","description":"point in polygon searches for leaflet","main":"index.js","scripts":{"test":"npm run lint && npm run test-unit","test-unit":"browserify test/*.js | tape-run","lint":"eslint index.js","build-site":"browserify site/site.js > site/bundle.js","prepublish":"browserify -s leafletPip index.js > leaflet-pip.js && uglifyjs leaflet-pip.js -c -m > leaflet-pip.min.js"},"files":["index.js","leaflet-pip.js","leaflet-pip.min.js"],"keywords":["leaflet","plugin","point","in","polygon","geo","geographical"],"repository":{"type":"git","url":"git://github.com/mapbox/leaflet-pip.git"},"devDependencies":{"browserify":"~13.0.1","eslint":"^2.2.0","phantomjs":"~2.1.7","tape":"~4.5.1","tape-run":"~2.1.4"},"author":{"name":"Tom MacWright","email":"tom@macwright.org"},"license":"ISC","dependencies":{"geojson-utils":"~1.1.0","uglify-js":"2.7.4"},"gitHead":"e1eed2c8468862444b2731a18422905039320659","bugs":{"url":"https://github.com/mapbox/leaflet-pip/issues"},"homepage":"https://github.com/mapbox/leaflet-pip#readme","_id":"leaflet-pip@1.1.0","_shasum":"fcf6777895531bc5bf883da9b663af0992424a01","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.6.2","_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"dist":{"shasum":"fcf6777895531bc5bf883da9b663af0992424a01","tarball":"https://registry.npmjs.org/leaflet-pip/-/leaflet-pip-1.1.0.tgz","integrity":"sha512-d8srPJ1X26JWsUYvTJ3FZ2udHIsyaOu3bTJLXSHJo+yav0a87kFIQrU90/P0ScXp3NFpJoarl3bmqXsJWmrjWA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDbh/GM6xOm6RO25omV+SmIcOl7OpEuAFMAkbNKbnWoOAiBsoJwxL+PxcU5907sk/SKB0FLcs1bLjZQVEeJCJx/Qvw=="}]},"maintainers":[{"name":"aaronlidman","email":"aaronlidman@gmail.com"},{"name":"ansis","email":"ansis.brammanis@gmail.com"},{"name":"camilleanne","email":"camille@mapbox.com"},{"name":"dthompson","email":"dthompson@gmail.com"},{"name":"gretacb","email":"carol@mapbox.com"},{"name":"ianshward","email":"ian@mapbox.com"},{"name":"ingalls","email":"nicholas.ingalls@gmail.com"},{"name":"jfirebaugh","email":"john.firebaugh@gmail.com"},{"name":"kkaefer","email":"kkaefer@gmail.com"},{"name":"lxbarth","email":"alex@mapbox.com"},{"name":"mapbox-admin","email":"accounts@mapbox.com"},{"name":"miccolis","email":"jeff@miccolis.net"},{"name":"mikemorris","email":"michael.patrick.morris@gmail.com"},{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},{"name":"mourner","email":"agafonkin@gmail.com"},{"name":"rclark","email":"ryan.clark.j@gmail.com"},{"name":"springmeyer","email":"dane@mapbox.com"},{"name":"tmcw","email":"tom@macwright.org"},{"name":"tristen","email":"tristen.brown@gmail.com"},{"name":"willwhite","email":"will@mapbox.com"},{"name":"yhahn","email":"young@mapbox.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/leaflet-pip-1.1.0.tgz_1479839564405_0.2885560274589807"},"deprecated":"This module is now under the @mapbox namespace: install @mapbox/leaflet-pip instead","directories":{}}},"readme":"## point in polygon for Leaflet\n\n[![build status](https://secure.travis-ci.org/mapbox/leaflet-pip.png)](http://travis-ci.org/mapbox/leaflet-pip)\n\nA [Leaflet](http://leafletjs.com/)-friendly API for [point in polygon](http://en.wikipedia.org/wiki/Point_in_polygon)\noperations, using [substack](https://github.com/substack)'s\n[point in polygon](https://github.com/substack/point-in-polygon) library.\n\n## install\n\nWith browserify\n\n    npm install leaflet-pip\n\nResolve for a CDN/packaged version:\n\n    https://unpkg.com/leaflet-pip@latest/leaflet-pip.js\n\n## example\n\n```\nvar gjLayer = L.geoJson(statesData);\nvar results = leafletPip.pointInLayer([-88, 38], gjLayer);\n// results is an array of L.Polygon objects containing that point\n```\n\n## api\n\n### `leafletPip.pointInLayer(point, layer L.GeoJSON, [first])`\n\nPoint can be:\n\n* A two-element array of `[lng, lat]`\n* A `L.LatLng` object\n\nLayer must be:\n\n* A `L.geoJSON` layer\n\n`first` can be:\n\n* `boolean`: `true` to accept the first match, or `false` to return all\n  polygons containing this point. This can be useful if you know that your\n  polygons are non-overlapping or don't care about more than one result,\n  since it will be much faster. By default, **this is false** and all matches\n  are returned.\n\nReturns:\n\nAn array of polygons in which the given point resides, an empty array if there\nare none. The polygons are returned as direct sublayers, so they can include\nMultiPolygons. You can call `pointInLayer` again on those if you want the\nsub-polygon result.\n\n### `leafletPip.bassackwards`\n\nLeaflet treats literate coordinate arrays as `[lat, lon]`, unlike GeoJSON\nand [any true scotsman](http://en.wikipedia.org/wiki/No_true_Scotsman). `leaflet-pip`\ntreats literate coordinate arrays as `[lon, lat]`, but if you set `bassackwards`\nto true, it'll do things the Leaflet/Google Maps API way.\n","maintainers":[{"email":"accounts@mapbox.com","name":"mapbox-admin"}],"time":{"modified":"2022-09-20T01:58:20.685Z","created":"2013-04-20T18:20:19.649Z","0.0.1":"2013-04-20T18:20:22.069Z","0.0.2":"2014-05-15T17:14:08.256Z","0.1.0":"2014-06-24T16:09:18.275Z","0.1.1":"2014-09-16T19:59:01.918Z","1.0.0":"2016-09-02T13:39:13.440Z","1.1.0":"2016-11-22T18:32:46.360Z"},"author":{"name":"Tom MacWright","email":"tom@macwright.org"},"keywords":["leaflet","plugin","point","in","polygon","geo","geographical"],"license":"ISC","readmeFilename":"README.md","users":{"marinho":true},"homepage":"https://github.com/mapbox/leaflet-pip#readme","repository":{"type":"git","url":"git://github.com/mapbox/leaflet-pip.git"},"bugs":{"url":"https://github.com/mapbox/leaflet-pip/issues"}}