Skip to content

Commit

Permalink
Stop counting if max is reached
Browse files Browse the repository at this point in the history
  • Loading branch information
mapcentia committed Feb 18, 2022
1 parent e8e1d27 commit 5344428
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ and this project adheres to [CalVer](https://calver.org/).
## [UNRELEASED]
### Fixed
- Better support for special characters and upper case in layer names. Fixes a UTF8 error in WMS requests and quotes schema/relation names in feature info requests.
- In the editor the counting of vertices in LineString features failed with Nan and it was impossible to edit. This fixed with implementing a proper counting rutine.
- In the editor the counting of vertices in LineString features failed with NaN and it was impossible to edit. This is fixed with implementing a proper counting rutine.

## [2022.2.1] 2022-3-3
### Fixed
Expand Down
3 changes: 3 additions & 0 deletions extensions/editor/browser/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,9 @@ module.exports = {
calculateCount(arr[i]);
} else {
numberOfNodes++;
if (numberOfNodes === MAX_NODE_IN_FEATURE) {
return;
}
}
}
};
Expand Down

0 comments on commit 5344428

Please sign in to comment.