@geoblocks/edittrack
Advanced tools
Comparing version 2.0.0-beta.7 to 2.0.0-beta.8
@@ -20,5 +20,6 @@ import { getDistance } from 'ol/sphere'; | ||
.transform(this.projection, 'EPSG:4326'); | ||
const coordinates = geometry.getCoordinates(); | ||
const coordinates_4326 = geometry_4326.getCoordinates(); | ||
for (let i = 0, ii = coordinates_4326.length; i < ii; i++) { | ||
const coos = coordinates_4326[i]; | ||
for (let i = 0, ii = coordinates.length; i < ii; i++) { | ||
const coos = coordinates[i]; | ||
const m = i === 0 ? 0 : getDistance(coordinates_4326[i - 1], coordinates_4326[i]); | ||
@@ -37,2 +38,2 @@ accDistance += m; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRXh0cmFjdEZyb21TZWdtZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3Byb2ZpbGVyL0V4dHJhY3RGcm9tU2VnbWVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sV0FBVyxDQUFDO0FBU3hDLE1BQU0sQ0FBQyxPQUFPLE9BQU8sa0JBQWtCO0lBRTdCLFVBQVUsQ0FBaUI7SUFFbkMsWUFBWSxPQUEwQztRQUNwRCxJQUFJLENBQUMsVUFBVSxHQUFHLE9BQU8sQ0FBQyxVQUFVLENBQUM7SUFDdkMsQ0FBQztJQUVELGNBQWMsQ0FDWixPQUE0QjtRQUU1QixPQUFPLElBQUksT0FBTyxDQUFDLENBQUMsT0FBTyxFQUFFLE1BQU0sRUFBRSxFQUFFO1lBQ3JDLE1BQU0sUUFBUSxHQUFHLE9BQU8sQ0FBQyxXQUFXLEVBQUUsQ0FBQztZQUN2QyxJQUFJLFFBQVEsQ0FBQyxTQUFTLEVBQUUsS0FBSyxNQUFNLEVBQUUsQ0FBQztnQkFDcEMsT0FBTyxDQUFDLEdBQUcsQ0FBQyx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FDekQsQ0FBQztnQkFDRCxPQUFPLENBQUMsR0FBRyxDQUFDLFNBQVMsRUFBRSxPQUFPLENBQUMsQ0FBQztnQkFDaEMsT0FBTyxFQUFFLENBQUM7WUFDWixDQUFDO2lCQUFNLENBQUM7Z0JBQ04sTUFBTSxFQUFFLENBQUM7WUFDWCxDQUFDO1FBQ0gsQ0FBQyxDQUFDLENBQUM7SUFDTCxDQUFDO0NBQ0YifQ== |
{ | ||
"name": "@geoblocks/edittrack", | ||
"version": "2.0.0-beta.7", | ||
"version": "2.0.0-beta.8", | ||
"description": "Geoblocks edittrack", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -33,6 +33,7 @@ import { getDistance } from 'ol/sphere'; | ||
const coordinates = geometry.getCoordinates(); | ||
const coordinates_4326 = geometry_4326.getCoordinates(); | ||
for (let i = 0, ii = coordinates_4326.length; i < ii; i++) { | ||
const coos = coordinates_4326[i]; | ||
for (let i = 0, ii = coordinates.length; i < ii; i++) { | ||
const coos = coordinates[i]; | ||
const m = i === 0 ? 0 : getDistance(coordinates_4326[i - 1], coordinates_4326[i]); | ||
@@ -39,0 +40,0 @@ accDistance += m; |
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
260360
4006