diff --git a/package.json b/package.json index 2bc936ba..919e3546 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "editing", - "version": "3.5.4", + "version": "3.5.5", "description": "", "main": "index.js", "directories": { diff --git a/services/editingservice.js b/services/editingservice.js index 81787cac..94f9f804 100644 --- a/services/editingservice.js +++ b/services/editingservice.js @@ -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);