From d79bb6eb1bfba0a78bca357455652e7d90004477 Mon Sep 17 00:00:00 2001 From: volterra79 Date: Fri, 20 Jan 2023 11:53:03 +0100 Subject: [PATCH] Fix issue on editResultLayerFeature. ReadFeature instead getFeatures --- package.json | 2 +- services/editingservice.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);