@geoblocks/edittrack
Advanced tools
Comparing version 2.0.0-beta.8 to 2.0.0-beta.9
@@ -17,5 +17,2 @@ import GeoJSONFormat from 'ol/format/GeoJSON.js'; | ||
const geometry = segment.getGeometry(); | ||
if (geometry.getCoordinates().length != 2) { | ||
throw new Error('SwisstopoProfiler requires a segment with exactly 2 coordinates'); | ||
} | ||
const geom = this.geojsonFormat.writeGeometry(geometry); | ||
@@ -42,2 +39,2 @@ const request = await fetch(this.url, { | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU3dpc3N0b3BvUHJvZmlsZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcHJvZmlsZXIvU3dpc3N0b3BvUHJvZmlsZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxhQUFhLE1BQU0sc0JBQXNCLENBQUM7QUFDakQsT0FBTyxFQUFDLEdBQUcsSUFBSSxhQUFhLEVBQUUsU0FBUyxFQUFDLE1BQU0sWUFBWSxDQUFDO0FBcUIzRCxNQUFNLENBQUMsT0FBTyxPQUFPLGlCQUFpQjtJQUM1QixHQUFHLEdBQUcsc0RBQXNELENBQUM7SUFDN0QsVUFBVSxDQUFpQjtJQUMzQixhQUFhLENBQWdCO0lBRXJDLFlBQVksT0FBaUM7UUFDM0MsSUFBSSxDQUFDLFVBQVUsR0FBRyxPQUFPLENBQUMsVUFBVSxDQUFDO1FBRXJDLE9BQU8sQ0FBQyxNQUFNLENBQUMsYUFBYSxDQUFDLFdBQVcsQ0FBQyxFQUFFLHFDQUFxQyxDQUFDLENBQUM7UUFFbEYsSUFBSSxDQUFDLGFBQWEsR0FBRyxJQUFJLGFBQWEsQ0FBQztZQUNyQyxjQUFjLEVBQUUsV0FBVztZQUMzQixpQkFBaUIsRUFBRSxJQUFJLENBQUMsVUFBVTtTQUNuQyxDQUFDLENBQUM7SUFDTCxDQUFDO0lBRUQsS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0FBQyxDQUFDLENBQUMsQ0FBQyxLQUFLLENBQUMsQ0FBQyxFQUFFLENBQUMsRUFBRSxHQUFHLFFBQVEsQ0FBQyxlQUFlLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDO1FBQzNFLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLEVBQUUsT0FBTyxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLEtBQUssQ0FBQyxDQUFDLEVBQUUsQ0FBQyxFQUFFLEdBQUcsUUFBUSxDQUFDLGVBQWUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQztRQUU5RSxPQUFPLENBQUMsR0FBRyxDQUFDLFNBQVMsRUFBRSxPQUFPLENBQUMsQ0FBQztJQUNsQyxDQUFDO0NBQ0Y7QUFFRCxTQUFTLGVBQWUsQ0FBQyxVQUEwQixFQUFFLENBQXVCO0lBQzFFLE9BQU8sU0FBUyxDQUFDLENBQUMsQ0FBQyxDQUFDLE9BQU8sRUFBRSxDQUFDLENBQUMsUUFBUSxFQUFFLENBQUMsQ0FBQyxJQUFJLENBQUMsSUFBSSxFQUFFLENBQUMsQ0FBQyxJQUFJLENBQUMsRUFBRSxXQUFXLEVBQUUsVUFBVSxDQUFDLENBQUM7QUFDMUYsQ0FBQyJ9 |
{ | ||
"name": "@geoblocks/edittrack", | ||
"version": "2.0.0-beta.8", | ||
"version": "2.0.0-beta.9", | ||
"description": "Geoblocks edittrack", | ||
@@ -41,7 +41,7 @@ "scripts": { | ||
"@geoblocks/sources": "0.3.3", | ||
"@types/chai": "4.3.14", | ||
"@types/chai": "4.3.16", | ||
"@types/mocha": "10.0.6", | ||
"@typescript-eslint/eslint-plugin": "7.7.0", | ||
"@typescript-eslint/parser": "7.7.0", | ||
"chai": "5.1.0", | ||
"@typescript-eslint/eslint-plugin": "7.9.0", | ||
"@typescript-eslint/parser": "7.9.0", | ||
"chai": "5.1.1", | ||
"eslint": "8.57.0", | ||
@@ -48,0 +48,0 @@ "gh-pages": "6.1.1", |
@@ -41,5 +41,2 @@ import GeoJSONFormat from 'ol/format/GeoJSON.js'; | ||
const geometry = segment.getGeometry(); | ||
if (geometry.getCoordinates().length != 2) { | ||
throw new Error('SwisstopoProfiler requires a segment with exactly 2 coordinates'); | ||
} | ||
const geom = this.geojsonFormat.writeGeometry(geometry); | ||
@@ -46,0 +43,0 @@ |
Sorry, the diff of this file is not supported yet
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
259904
4000