Skip to content

Commit dce096b

Browse files
committed
Website updates
1 parent 85bdaab commit dce096b

File tree

7 files changed

+25
-23
lines changed

7 files changed

+25
-23
lines changed

dist/en/main/apidoc/module-ol_control_OverviewMap-OverviewMap.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,7 @@ <h4 class="name">
997997

998998
<div class="tag-source">
999999
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/control/OverviewMap.js">control/OverviewMap.js</a>,
1000-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/control/OverviewMap.js#L627">line 627</a>
1000+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/control/OverviewMap.js#L629">line 629</a>
10011001
</div>
10021002

10031003
</div>
@@ -1087,7 +1087,7 @@ <h4 class="name">
10871087

10881088
<div class="tag-source">
10891089
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/control/OverviewMap.js">control/OverviewMap.js</a>,
1090-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/control/OverviewMap.js#L588">line 588</a>
1090+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/control/OverviewMap.js#L590">line 590</a>
10911091
</div>
10921092

10931093
</div>
@@ -1361,7 +1361,7 @@ <h4 class="name">
13611361

13621362
<div class="tag-source">
13631363
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/control/OverviewMap.js">control/OverviewMap.js</a>,
1364-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/control/OverviewMap.js#L667">line 667</a>
1364+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/control/OverviewMap.js#L669">line 669</a>
13651365
</div>
13661366

13671367
</div>
@@ -1636,7 +1636,7 @@ <h4 class="name">
16361636

16371637
<div class="tag-source">
16381638
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/control/OverviewMap.js">control/OverviewMap.js</a>,
1639-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/control/OverviewMap.js#L636">line 636</a>
1639+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/control/OverviewMap.js#L638">line 638</a>
16401640
</div>
16411641

16421642
</div>
@@ -2238,7 +2238,7 @@ <h4 class="name">
22382238

22392239
<div class="tag-source">
22402240
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/control/OverviewMap.js">control/OverviewMap.js</a>,
2241-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/control/OverviewMap.js#L615">line 615</a>
2241+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/control/OverviewMap.js#L617">line 617</a>
22422242
</div>
22432243

22442244
</div>
@@ -2366,7 +2366,7 @@ <h4 class="name">
23662366

23672367
<div class="tag-source">
23682368
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/control/OverviewMap.js">control/OverviewMap.js</a>,
2369-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/control/OverviewMap.js#L597">line 597</a>
2369+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/control/OverviewMap.js#L599">line 599</a>
23702370
</div>
23712371

23722372
</div>
@@ -2492,7 +2492,7 @@ <h4 class="name">
24922492

24932493
<div class="tag-source">
24942494
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/control/OverviewMap.js">control/OverviewMap.js</a>,
2495-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/control/OverviewMap.js#L275">line 275</a>
2495+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/control/OverviewMap.js#L277">line 277</a>
24962496
</div>
24972497

24982498
</div>
@@ -2778,7 +2778,7 @@ <h4 class="name">
27782778

27792779
<div class="tag-source">
27802780
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/control/OverviewMap.js">control/OverviewMap.js</a>,
2781-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/control/OverviewMap.js#L645">line 645</a>
2781+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/control/OverviewMap.js#L647">line 647</a>
27822782
</div>
27832783

27842784
</div>

dist/en/main/examples/common.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/examples/common.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/control/OverviewMap.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/control/OverviewMap.js

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -221,14 +221,12 @@ class OverviewMap extends Control {
221221

222222
/* Interactive map */
223223

224-
const scope = this;
225-
226224
const overlay = this.boxOverlay_;
227225
const overlayBox = this.boxOverlay_.getElement();
228226

229227
/* Functions definition */
230228

231-
const computeDesiredMousePosition = function (mousePosition) {
229+
const computeDesiredMousePosition = (mousePosition) => {
232230
return {
233231
clientX: mousePosition.clientX,
234232
clientY: mousePosition.clientY,
@@ -244,22 +242,26 @@ class OverviewMap extends Control {
244242
overlay.setPosition(coordinates);
245243
};
246244

247-
const endMoving = function (event) {
245+
const endMoving = (event) => {
248246
const coordinates = ovmap.getEventCoordinateInternal(event);
249247

250-
scope.getMap().getView().setCenterInternal(coordinates);
248+
const map = this.getMap();
249+
250+
map.getView().setCenterInternal(coordinates);
251251

252-
window.removeEventListener('pointermove', move);
253-
window.removeEventListener('pointerup', endMoving);
252+
const ownerDocument = map.getOwnerDocument();
253+
ownerDocument.removeEventListener('pointermove', move);
254+
ownerDocument.removeEventListener('pointerup', endMoving);
254255
};
255256

256257
/* Binding */
257258

258-
this.ovmapDiv_.addEventListener('pointerdown', function () {
259+
this.ovmapDiv_.addEventListener('pointerdown', (event) => {
260+
const ownerDocument = this.getMap().getOwnerDocument();
259261
if (event.target === overlayBox) {
260-
window.addEventListener('pointermove', move);
262+
ownerDocument.addEventListener('pointermove', move);
261263
}
262-
window.addEventListener('pointerup', endMoving);
264+
ownerDocument.addEventListener('pointerup', endMoving);
263265
});
264266
}
265267

dist/en/main/ol/dist/ol.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/dist/ol.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)