@turf/mask
Advanced tools
Comparing version 3.13.0 to 3.13.1
27
index.js
@@ -14,14 +14,21 @@ var featureEach = require('@turf/meta').featureEach; | ||
* @return {Feature<Polygon>} Masked Polygon (exterior ring with holes). | ||
* @addToMap masked | ||
* @example | ||
* var poylgon = { | ||
* "type": "Feature", | ||
* "properties": {}, | ||
* "geometry": { | ||
* "type": "Polygon", | ||
* "coordinates": [ | ||
* [[100, 0], [101, 0], [101,1], [100,1], [100, 0]] | ||
* ] | ||
* } | ||
* var polygon = { | ||
* "type": "Feature", | ||
* "properties": {}, | ||
* "geometry": { | ||
* "type": "Polygon", | ||
* "coordinates": [[[112, -21], [116, -36], [146, -39], [153, -24], [133, -10], [112, -21]]] | ||
* } | ||
* } | ||
* var masked = turf.mask(polygon); | ||
* var mask = { | ||
* "type": "Feature", | ||
* "properties": {}, | ||
* "geometry": { | ||
* "type": "Polygon", | ||
* "coordinates": [[[90, -55], [170, -55], [170, 10], [90, 10], [90, -55]]] | ||
* } | ||
* } | ||
* var masked = turf.mask(polygon, mask); | ||
* //=masked | ||
@@ -28,0 +35,0 @@ */ |
{ | ||
"name": "@turf/mask", | ||
"version": "3.13.0", | ||
"version": "3.13.1", | ||
"description": "turf mask module", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -15,13 +15,19 @@ # @turf/mask | ||
```javascript | ||
var poylgon = { | ||
"type": "Feature", | ||
"properties": {}, | ||
"geometry": { | ||
"type": "Polygon", | ||
"coordinates": [ | ||
[[100, 0], [101, 0], [101,1], [100,1], [100, 0]] | ||
] | ||
} | ||
var polygon = { | ||
"type": "Feature", | ||
"properties": {}, | ||
"geometry": { | ||
"type": "Polygon", | ||
"coordinates": [[[112, -21], [116, -36], [146, -39], [153, -24], [133, -10], [112, -21]]] | ||
} | ||
} | ||
var masked = turf.mask(polygon); | ||
var mask = { | ||
"type": "Feature", | ||
"properties": {}, | ||
"geometry": { | ||
"type": "Polygon", | ||
"coordinates": [[[90, -55], [170, -55], [170, 10], [90, 10], [90, -55]]] | ||
} | ||
} | ||
var masked = turf.mask(polygon, mask); | ||
//=masked | ||
@@ -28,0 +34,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10905
205
61