Skip to content

Commit

Permalink
Website updates
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaub committed Jan 14, 2025
1 parent 85bdaab commit dce096b
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ <h4 class="name">

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

</div>
Expand Down Expand Up @@ -1087,7 +1087,7 @@ <h4 class="name">

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

</div>
Expand Down Expand Up @@ -1361,7 +1361,7 @@ <h4 class="name">

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

</div>
Expand Down Expand Up @@ -1636,7 +1636,7 @@ <h4 class="name">

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

</div>
Expand Down Expand Up @@ -2238,7 +2238,7 @@ <h4 class="name">

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

</div>
Expand Down Expand Up @@ -2366,7 +2366,7 @@ <h4 class="name">

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

</div>
Expand Down Expand Up @@ -2492,7 +2492,7 @@ <h4 class="name">

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

</div>
Expand Down Expand Up @@ -2778,7 +2778,7 @@ <h4 class="name">

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

</div>
Expand Down
2 changes: 1 addition & 1 deletion dist/en/main/examples/common.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/en/main/examples/common.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/en/main/ol/control/OverviewMap.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 12 additions & 10 deletions dist/en/main/ol/control/OverviewMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,14 +221,12 @@ class OverviewMap extends Control {

/* Interactive map */

const scope = this;

const overlay = this.boxOverlay_;
const overlayBox = this.boxOverlay_.getElement();

/* Functions definition */

const computeDesiredMousePosition = function (mousePosition) {
const computeDesiredMousePosition = (mousePosition) => {
return {
clientX: mousePosition.clientX,
clientY: mousePosition.clientY,
Expand All @@ -244,22 +242,26 @@ class OverviewMap extends Control {
overlay.setPosition(coordinates);
};

const endMoving = function (event) {
const endMoving = (event) => {
const coordinates = ovmap.getEventCoordinateInternal(event);

scope.getMap().getView().setCenterInternal(coordinates);
const map = this.getMap();

map.getView().setCenterInternal(coordinates);

window.removeEventListener('pointermove', move);
window.removeEventListener('pointerup', endMoving);
const ownerDocument = map.getOwnerDocument();
ownerDocument.removeEventListener('pointermove', move);
ownerDocument.removeEventListener('pointerup', endMoving);
};

/* Binding */

this.ovmapDiv_.addEventListener('pointerdown', function () {
this.ovmapDiv_.addEventListener('pointerdown', (event) => {
const ownerDocument = this.getMap().getOwnerDocument();
if (event.target === overlayBox) {
window.addEventListener('pointermove', move);
ownerDocument.addEventListener('pointermove', move);
}
window.addEventListener('pointerup', endMoving);
ownerDocument.addEventListener('pointerup', endMoving);
});
}

Expand Down
2 changes: 1 addition & 1 deletion dist/en/main/ol/dist/ol.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/en/main/ol/dist/ol.js.map

Large diffs are not rendered by default.

0 comments on commit dce096b

Please sign in to comment.