fix(vector-map): fix center point calculation
1 unresolved thread
1 unresolved thread
Merge request reports
Activity
Filter activity
requested review from @KonradAt
added 12 commits
-
51cf6bf7...9d273f40 - 11 commits from branch
feat/MIN-64-reaction-with-modification
- 9391e9ed - Merge branch 'feat/MIN-64-reaction-with-modification' of...
-
51cf6bf7...9d273f40 - 11 commits from branch
1 /* eslint-disable no-magic-numbers */ 2 import { Coordinate } from 'ol/coordinate'; 3 4 export default function getCenter(coords: Array<Coordinate>): Coordinate { 5 let minX = Infinity; 6 let minY = Infinity; 7 let maxX = -Infinity; 8 let maxY = -Infinity; 9 10 coords.forEach(([x, y]) => { 11 if (x < minX) minX = x; 12 if (x > maxX) maxX = x; changed this line in version 4 of the diff
added 26 commits
-
9391e9ed...75202c31 - 25 commits from branch
development
- 8e6b8363 - chore: resolve merge conflicts
-
9391e9ed...75202c31 - 25 commits from branch
added 1 commit
- 92e2989b - refactor(vector-map): change 'else if' to 'if' in the getCenter function
mentioned in commit 281a064f
Please register or sign in to reply