Comparing version 1.2.0 to 1.2.1
{ | ||
"name": "geo-point", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "geo point", | ||
@@ -27,8 +27,8 @@ "main": "index.js", | ||
"compute-rad2deg": "^1.0.0", | ||
"lodash": "^4.17.11" | ||
"lodash": "^4.17.15" | ||
}, | ||
"devDependencies": { | ||
"chai": "^3.5.0", | ||
"mocha": "^5.2.0", | ||
"nyc": "^11.9.0" | ||
"chai": "^4.2.0", | ||
"mocha": "^6.2.0", | ||
"nyc": "^14.1.1" | ||
}, | ||
@@ -35,0 +35,0 @@ "nyc": { |
@@ -39,3 +39,11 @@ # GeoPoint | ||
``` | ||
#### `toTile(zoom: number): TileObject` | ||
Calculates the tile | ||
```js | ||
const startPoint = new GeoPoint(51.5, -0.15); | ||
const { x, y } = startPoint.toTile(7); | ||
``` | ||
##### `toString(): String` | ||
@@ -130,2 +138,2 @@ returns **lat,lng** string | ||
const point = GeoPoint.fromLngLatArray([-0.15, 51.5]); | ||
``` | ||
``` |
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
14367
138
Updatedlodash@^4.17.15