@turf/point-on-surface
Advanced tools
Comparing version 4.1.0 to 4.2.0
11
index.js
@@ -20,13 +20,6 @@ var featureCollection = require('@turf/helpers').featureCollection; | ||
* | ||
* //=polygon | ||
* | ||
* var pointOnPolygon = turf.pointOnSurface(polygon); | ||
* | ||
* var resultFeatures = polygon.features.concat(pointOnPolygon); | ||
* var result = { | ||
* "type": "FeatureCollection", | ||
* "features": resultFeatures | ||
* }; | ||
* | ||
* //=result | ||
* //addToMap | ||
* var addToMap = [polygon, pointOnPolygon]; | ||
*/ | ||
@@ -33,0 +26,0 @@ function pointOnSurface(fc) { |
{ | ||
"name": "@turf/point-on-surface", | ||
"version": "4.1.0", | ||
"version": "4.2.0", | ||
"description": "turf point-on-surface module", | ||
@@ -38,8 +38,8 @@ "main": "index.js", | ||
"dependencies": { | ||
"@turf/center": "^4.1.0", | ||
"@turf/distance": "^4.1.0", | ||
"@turf/explode": "^4.1.0", | ||
"@turf/inside": "^4.1.0", | ||
"@turf/helpers": "^4.1.0" | ||
"@turf/center": "^4.2.0", | ||
"@turf/distance": "^4.2.0", | ||
"@turf/explode": "^4.2.0", | ||
"@turf/inside": "^4.2.0", | ||
"@turf/helpers": "^4.2.0" | ||
} | ||
} |
@@ -21,13 +21,6 @@ # @turf/point-on-surface | ||
//=polygon | ||
var pointOnPolygon = turf.pointOnSurface(polygon); | ||
var resultFeatures = polygon.features.concat(pointOnPolygon); | ||
var result = { | ||
"type": "FeatureCollection", | ||
"features": resultFeatures | ||
}; | ||
//=result | ||
//addToMap | ||
var addToMap = [polygon, pointOnPolygon]; | ||
``` | ||
@@ -34,0 +27,0 @@ |
8879
146
53
Updated@turf/center@^4.2.0
Updated@turf/distance@^4.2.0
Updated@turf/explode@^4.2.0
Updated@turf/helpers@^4.2.0
Updated@turf/inside@^4.2.0