Browse Source

bugfixes

master
TuxCoder 1 year ago
parent
commit
f7f81ebc47
6 changed files with 21 additions and 9 deletions
  1. +2
    -0
      dist/main.css
  2. +1
    -1
      dist/main.css.map
  3. +5
    -2
      dist/main.js
  4. +1
    -1
      dist/main.js.map
  5. +5
    -2
      src/MessureControl.js
  6. +7
    -3
      src/app.scss

+ 2
- 0
dist/main.css View File

@ -391,6 +391,8 @@ html, body {
right: .25em;
top: 10em;
font-size: 1.5em; }
.ol-messure .ol-messure-true {
background-color: green !important; }
.tooltip {
position: relative;


+ 1
- 1
dist/main.css.map
File diff suppressed because it is too large
View File


+ 5
- 2
dist/main.js View File

@ -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_);
}
/**


+ 1
- 1
dist/main.js.map
File diff suppressed because it is too large
View File


+ 5
- 2
src/MessureControl.js View File

@ -163,7 +163,7 @@ var 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 ? 'Polygon' : 'LineString');
this.draw_ = new Draw({
@ -258,8 +258,10 @@ var 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_);
}
/**
@ -270,7 +272,8 @@ var 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_);
}
/**


+ 7
- 3
src/app.scss View File

@ -18,9 +18,12 @@ html, body {
}
.ol-messure {
right: .25em;
top: 10em;
font-size: 1.5em;
right: .25em;
top: 10em;
font-size: 1.5em;
.ol-messure-true {
background-color: green !important;
}
}
.tooltip {
@ -55,3 +58,4 @@ html, body {
.tooltip-static:before {
border-top-color: #ffcc33;
}

Loading…
Cancel
Save