ol 10.3.2-dev.1736849617117 → 10.3.2-dev.1736857702119
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/control/OverviewMap.d.ts.map +1 -1
- package/control/OverviewMap.js +12 -10
- package/dist/ol.js +1 -1
- package/dist/ol.js.map +1 -1
- package/package.json +1 -1
- package/util.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OverviewMap.d.ts","sourceRoot":"","sources":["OverviewMap.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAkDuB,OAAO,gBAAgB,EAAE,OAAO,KAAE,IAAI;;;;;;;;;;;;;;;;;;;;AAX7D;;;;;;;;;;;;;;;;;;;GAmBG;AAEH;;;;;GAKG;AACH;IACE;;OAEG;IACH,sBAFW,OAAO,
|
|
1
|
+
{"version":3,"file":"OverviewMap.d.ts","sourceRoot":"","sources":["OverviewMap.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAkDuB,OAAO,gBAAgB,EAAE,OAAO,KAAE,IAAI;;;;;;;;;;;;;;;;;;;;AAX7D;;;;;;;;;;;;;;;;;;;GAmBG;AAEH;;;;;GAKG;AACH;IACE;;OAEG;IACH,sBAFW,OAAO,EAqMjB;IA1LC;;OAEG;IACH,oCAAyE;IAEzE;;;OAGG;IACH,mBAC4D;IAE5D;;;OAGG;IACH,qBACgE;IAMhE;;;OAGG;IACH,wBACuE;IAEvE;;;OAGG;IACH,oBAA4B;IAY1B;;;OAGG;IACH,uBAAoD;IASpD;;;OAGG;IACH,eAA4C;IAmB9C;;;OAGG;IACH,kBAA8C;IAG9C;;;;OAIG;IACH,cAAyB;IAQzB;;;OAGG;IACH,eAAmB;IAYnB;;;OAGG;IACH,oBAIE;IA2GJ;;;;OAIG;IACH,iCAgBC;IAED;;;;OAIG;IACH,kBAoBC;IAED;;;;OAIG;IACH,oBAKC;IAED;;;OAGG;IACH,+BAIC;IAED;;;;;;;;;;OAUG;IACH,wBAiDC;IAED;;;;OAIG;IACH,qBAsBC;IAED;;;;OAIG;IACH,kBASC;IAED;;;OAGG;IACH,mBAkCC;IAED;;OAEG;IACH,uCAYC;IARC,yBAOC;IAGH;;;OAGG;IACH,qBAGC;IAED;;OAEG;IACH,sBAsBC;IAED;;;;OAIG;IACH,kBAHY,OAAO,CAKlB;IAED;;;;OAIG;IACH,4BAHW,OAAO,QAYjB;IAED;;;;;;OAMG;IACH,wBAHW,OAAO,QAQjB;IAED;;;;OAIG;IACH,gBAHY,OAAO,CAKlB;IAED;;;;OAIG;IACH,qBAHY,OAAO,CAKlB;IAED;;;;OAIG;IACH,kCAHW,OAAO,QAkBjB;IAED;;;;OAIG;IACH,kBAHY,OAAO,WAAW,EAAE,OAAO,CAKtC;CAWF;uBAtqBsB,kBAAkB;iBAMxB,YAAY;oBAcT,cAAc"}
|
package/control/OverviewMap.js
CHANGED
|
@@ -221,14 +221,12 @@ class OverviewMap extends Control {
|
|
|
221
221
|
|
|
222
222
|
/* Interactive map */
|
|
223
223
|
|
|
224
|
-
const scope = this;
|
|
225
|
-
|
|
226
224
|
const overlay = this.boxOverlay_;
|
|
227
225
|
const overlayBox = this.boxOverlay_.getElement();
|
|
228
226
|
|
|
229
227
|
/* Functions definition */
|
|
230
228
|
|
|
231
|
-
const computeDesiredMousePosition =
|
|
229
|
+
const computeDesiredMousePosition = (mousePosition) => {
|
|
232
230
|
return {
|
|
233
231
|
clientX: mousePosition.clientX,
|
|
234
232
|
clientY: mousePosition.clientY,
|
|
@@ -244,22 +242,26 @@ class OverviewMap extends Control {
|
|
|
244
242
|
overlay.setPosition(coordinates);
|
|
245
243
|
};
|
|
246
244
|
|
|
247
|
-
const endMoving =
|
|
245
|
+
const endMoving = (event) => {
|
|
248
246
|
const coordinates = ovmap.getEventCoordinateInternal(event);
|
|
249
247
|
|
|
250
|
-
|
|
248
|
+
const map = this.getMap();
|
|
249
|
+
|
|
250
|
+
map.getView().setCenterInternal(coordinates);
|
|
251
251
|
|
|
252
|
-
|
|
253
|
-
|
|
252
|
+
const ownerDocument = map.getOwnerDocument();
|
|
253
|
+
ownerDocument.removeEventListener('pointermove', move);
|
|
254
|
+
ownerDocument.removeEventListener('pointerup', endMoving);
|
|
254
255
|
};
|
|
255
256
|
|
|
256
257
|
/* Binding */
|
|
257
258
|
|
|
258
|
-
this.ovmapDiv_.addEventListener('pointerdown',
|
|
259
|
+
this.ovmapDiv_.addEventListener('pointerdown', (event) => {
|
|
260
|
+
const ownerDocument = this.getMap().getOwnerDocument();
|
|
259
261
|
if (event.target === overlayBox) {
|
|
260
|
-
|
|
262
|
+
ownerDocument.addEventListener('pointermove', move);
|
|
261
263
|
}
|
|
262
|
-
|
|
264
|
+
ownerDocument.addEventListener('pointerup', endMoving);
|
|
263
265
|
});
|
|
264
266
|
}
|
|
265
267
|
|