File tree Expand file tree Collapse file tree 3 files changed +21
-2
lines changed
packages/base/src/formbuilder/objectform/layer Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 11import { IDict , IGeoJSONSource , IHeatmapLayer } from '@jupytergis/schema' ;
2- import { IChangeEvent } from '@rjsf/core' ;
2+ import { IChangeEvent , ISubmitEvent } from '@rjsf/core' ;
33
44import { loadFile } from '@/src/tools' ;
55import { ILayerProps , LayerPropertiesForm } from './layerform' ;
@@ -25,6 +25,12 @@ export class HeatmapLayerPropertiesForm extends LayerPropertiesForm {
2525 }
2626 }
2727
28+ protected onFormSubmit ( e : ISubmitEvent < any > ) : void {
29+ e . formData . symbologyState = { } ;
30+
31+ return super . onFormSubmit ( e ) ;
32+ }
33+
2834 protected onFormChange ( e : IChangeEvent ) : void {
2935 super . onFormChange ( e ) ;
3036
Original file line number Diff line number Diff line change 11import { IDict , IVectorLayer } from '@jupytergis/schema' ;
2- import { IChangeEvent } from '@rjsf/core' ;
2+ import { IChangeEvent , ISubmitEvent } from '@rjsf/core' ;
33
44import { ILayerProps , LayerPropertiesForm } from './layerform' ;
55
@@ -14,6 +14,12 @@ export class VectorLayerPropertiesForm extends LayerPropertiesForm {
1414 super ( props ) ;
1515 }
1616
17+ protected onFormSubmit ( e : ISubmitEvent < any > ) : void {
18+ e . formData . symbologyState = { } ;
19+
20+ return super . onFormSubmit ( e ) ;
21+ }
22+
1723 protected onFormChange ( e : IChangeEvent ) : void {
1824 super . onFormChange ( e ) ;
1925
Original file line number Diff line number Diff line change 11import { IDict } from '@jupytergis/schema' ;
22
33import { LayerPropertiesForm } from './layerform' ;
4+ import { ISubmitEvent } from '@rjsf/core' ;
45
56/**
67 * The form to modify a hillshade layer.
78 */
89export class WebGlLayerPropertiesForm extends LayerPropertiesForm {
10+ protected onFormSubmit ( e : ISubmitEvent < any > ) : void {
11+ e . formData . symbologyState = { } ;
12+
13+ return super . onFormSubmit ( e ) ;
14+ }
15+
916 protected processSchema (
1017 data : IDict < any > | undefined ,
1118 schema : IDict ,
You can’t perform that action at this time.
0 commit comments