Skip to content

Commit 0459a30

Browse files
Apply suggestions from code review
Co-authored-by: martinRenou <[email protected]>
1 parent f42d24b commit 0459a30

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/base/src/mainview/mainView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ import { MainViewModel } from './mainviewmodel';
9797
//import Modify from 'ol/interaction/Modify.js';
9898
//import Snap from 'ol/interaction/Snap.js';
9999

100-
const drawGeometries = ['Point', 'LineString', 'Polygon'];
100+
const DRAW_GEOMETRIES = ['Point', 'LineString', 'Polygon'] as const;
101101

102102
interface IProps {
103103
viewModel: MainViewModel;

packages/schema/src/model.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -810,8 +810,8 @@ export class JupyterGISModel implements IJupyterGISModel {
810810
private _geolocation: JgisCoordinates;
811811
private _geolocationChanged = new Signal<this, JgisCoordinates>(this);
812812

813-
public isDrawVectorLayerEnabled: boolean;
814-
public drawVectorLayerChanged = new Signal<this, boolean>(this);
813+
private editingVectorLayer: boolean;
814+
private editingVectorLayerChanged = new Signal<this, boolean>(this);
815815
}
816816

817817
export namespace JupyterGISModel {

0 commit comments

Comments
 (0)