Skip to content

Commit

Permalink
Use this.getFeatures() for consistency. #173 (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
paul121 committed Sep 28, 2022
1 parent eedd137 commit 5b86e87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed

- Allow the public path to be set for Webpack chunk loading. #182
- Use this.getFeatures() for consistency in edit control. #173

## [v2.0.7] - 2022-09-22

Expand Down
3 changes: 1 addition & 2 deletions src/control/Edit/Edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -526,8 +526,7 @@ class Edit extends Control {
* @api
*/
getGeoJSON() {
const features = this.layer.getSource().getFeatures();
return new GeoJSON().writeFeatures(features, projection);
return new GeoJSON().writeFeatures(this.getFeatures(), projection);
}

/**
Expand Down

0 comments on commit 5b86e87

Please sign in to comment.