We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0abe14a commit 8470fbaCopy full SHA for 8470fba
client/src/components/geoJS/layers/measureToolLayer.ts
@@ -65,9 +65,6 @@ export default class MeasureToolLayer extends BaseTextLayer<TextData> {
65
66
this.textStyle = this.createTextStyle();
67
this.rulerOn = measuring || false;
68
- if (this.rulerOn) {
69
- this.enableDrawing();
70
- }
71
72
this.moveHandler = (e: GeoEvent) => {
73
if (e && this.dragging) {
@@ -108,6 +105,10 @@ export default class MeasureToolLayer extends BaseTextLayer<TextData> {
108
105
this.updateRuler(this.yValue);
109
106
this.event('update:cursor', { cursor: 'grab' });
110
107
};
+
+ if (this.rulerOn) {
+ this.enableDrawing();
111
+ }
112
}
113
114
enableDrawing() {
0 commit comments