|
|
@ -47063,7 +47063,7 @@ var MessureControl_MessureControl = /*@__PURE__*/(function (Control) { |
|
|
|
* Message to show when the user is drawing a line. |
|
|
|
* @type {string} |
|
|
|
*/ |
|
|
|
this.continueLineMsg = 'Click to continue drawing the line'; |
|
|
|
this.continueLineMsg = 'Click to continue drawing the line</br>Doubleclick to end path'; |
|
|
|
|
|
|
|
var type = (false ? undefined : 'LineString'); |
|
|
|
this.draw_ = new interaction_Draw({ |
|
|
@ -47158,8 +47158,10 @@ var MessureControl_MessureControl = /*@__PURE__*/(function (Control) { |
|
|
|
this.pointerMoveHandler_ = (e) => self.pointerMoveHandler(e); |
|
|
|
map.on('pointermove', this.pointerMoveHandler_); |
|
|
|
map.addInteraction(this.draw_); |
|
|
|
this.button_.classList.add('active'); |
|
|
|
|
|
|
|
this.active_ = true; |
|
|
|
this.setClassName_(this.button_, this.active_); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@ -47170,7 +47172,8 @@ var MessureControl_MessureControl = /*@__PURE__*/(function (Control) { |
|
|
|
map.un('pointermove', this.pointerMoveHandler_); |
|
|
|
map.removeInteraction(this.draw_); |
|
|
|
this.helpTooltipElement.classList.add('hidden'); |
|
|
|
this.active_ = true; |
|
|
|
this.active_ = false; |
|
|
|
this.setClassName_(this.button_, this.active_); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|