File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
lib/com/hydrologis/flutterlibs/forms Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -2428,7 +2428,8 @@ class GeometryWidgetState extends State<GeometryWidget> {
2428
2428
}
2429
2429
2430
2430
if (sWidget == null ) {
2431
- sWidget = SmashMapWidget (key: ValueKey (keyStr));
2431
+ sWidget = SmashMapWidget (
2432
+ key: UniqueKey ()); // TODO check this ValueKey(keyStr));
2432
2433
sWidget! .setInitParameters (
2433
2434
canRotate: false ,
2434
2435
initBounds: latLngBoundsExt.toEnvelope (),
@@ -2616,9 +2617,11 @@ class GeometryWidgetState extends State<GeometryWidget> {
2616
2617
GeometryEditManager ().stopEditing ();
2617
2618
2618
2619
// reload layer geoms
2619
- await reloadLayerSource (geojsonSource! );
2620
+ // await reloadLayerSource(geojsonSource!);
2620
2621
2621
- setState (() {});
2622
+ setState (() {
2623
+ sWidget = null ;
2624
+ });
2622
2625
},
2623
2626
),
2624
2627
);
You can’t perform that action at this time.
0 commit comments