Skip to content

Commit

Permalink
Fix issue on editResultLayerFeature. ReadFeature instead getFeatures
Browse files Browse the repository at this point in the history
  • Loading branch information
volterra79 committed Jan 20, 2023
1 parent ce59759 commit d79bb6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "editing",
"version": "3.5.4",
"version": "3.5.5",
"description": "",
"main": "index.js",
"directories": {
Expand Down
2 changes: 1 addition & 1 deletion services/editingservice.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ proto.editResultLayerFeature = function({layer, feature}={}){
*
* Need to get feature from Editing layer source because it has a style layer
*/
const feature = toolBox.getLayer().getEditingLayer().getSource().getFeatures().find(feature => feature.getId() == featureId);
const feature = toolBox.getLayer().getEditingLayer().getSource().readFeatures().find(feature => feature.getId() == featureId);
if (feature){
feature.getGeometry() && this._mapService.zoomToGeometry(feature.getGeometry());
toolBox.setSelected(true);
Expand Down

0 comments on commit d79bb6e

Please sign in to comment.