Skip to content

Commit

Permalink
Update measure.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlalex committed Nov 12, 2024
1 parent 06152ff commit 46c94a8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/controls/measure.js
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ const Measure = function Measure({
});

measureButton = Button({
cls: 'o-measure padding-small icon-smaller round light box-shadow',
cls: 'o-measure padding-small margin-bottom-smaller icon-smaller round light box-shadow',
click() {
toggleMeasure();
},
Expand All @@ -762,7 +762,7 @@ const Measure = function Measure({

if (lengthTool) {
lengthToolButton = Button({
cls: 'o-measure-length padding-small margin-top-small icon-smaller round light box-shadow hidden',
cls: 'o-measure-length padding-small margin-bottom-smaller icon-smaller round light box-shadow hidden',
click() {
type = 'LineString';
toggleType(this);
Expand All @@ -778,7 +778,7 @@ const Measure = function Measure({

if (areaTool) {
areaToolButton = Button({
cls: 'o-measure-area padding-small margin-top-small icon-smaller round light box-shadow hidden',
cls: 'o-measure-area padding-small margin-bottom-smaller icon-smaller round light box-shadow hidden',
click() {
type = 'Polygon';
toggleType(this);
Expand All @@ -793,7 +793,7 @@ const Measure = function Measure({

if (elevationTool) {
elevationToolButton = Button({
cls: 'o-measure-elevation padding-small margin-top-small icon-smaller round light box-shadow hidden',
cls: 'o-measure-elevation padding-small margin-bottom-smaller icon-smaller round light box-shadow hidden',
click() {
type = 'Point';
toggleType(this);
Expand All @@ -808,7 +808,7 @@ const Measure = function Measure({

if (bufferTool) {
bufferToolButton = Button({
cls: 'o-measure-buffer padding-small margin-top-small icon-smaller round light box-shadow hidden',
cls: 'o-measure-buffer padding-small margin-bottom-smaller icon-smaller round light box-shadow hidden',
click() {
type = 'Point';
toggleType(this);
Expand Down Expand Up @@ -836,7 +836,7 @@ const Measure = function Measure({

if (lengthTool || areaTool) {
undoButton = Button({
cls: 'o-measure-undo padding-small margin-top-small icon-smaller round light box-shadow hidden',
cls: 'o-measure-undo padding-small margin-bottom-smaller icon-smaller round light box-shadow hidden',
click() {
undoLastPoint();
},
Expand All @@ -846,7 +846,7 @@ const Measure = function Measure({
});
buttons.push(undoButton);
clearButton = Button({
cls: 'o-measure-clear padding-small margin-top-small icon-smaller round light box-shadow hidden',
cls: 'o-measure-clear padding-small margin-bottom-smaller icon-smaller round light box-shadow hidden',
click() {
measure.abortDrawing();
vector.getSource().clear();
Expand All @@ -861,7 +861,7 @@ const Measure = function Measure({

if (snap) {
toggleSnapButton = Button({
cls: `o-measure-snap padding-small margin-top-small icon-smaller round light box-shadow hidden activ ${
cls: `o-measure-snap padding-small margin-bottom-smaller icon-smaller round light box-shadow hidden activ ${
snapActive && 'active'
}`,
click() {
Expand Down

0 comments on commit 46c94a8

Please sign in to comment.