Merge pull request #11992 from MoonE/measure-example

Improve measure example ux
This commit is contained in:
MoonE
2021-02-08 19:23:23 +01:00
committed by GitHub
2 changed files with 4 additions and 0 deletions

View File

@@ -7,6 +7,8 @@
opacity: 0.7;
white-space: nowrap;
font-size: 12px;
cursor: default;
user-select: none;
}
.ol-tooltip-measure {
opacity: 1;

View File

@@ -248,6 +248,8 @@ function createMeasureTooltip() {
element: measureTooltipElement,
offset: [0, -15],
positioning: 'bottom-center',
stopEvent: false,
insertFirst: false,
});
map.addOverlay(measureTooltip);
}