Small bugfixes

This commit is contained in:
Pax1601
2023-10-14 11:07:39 +02:00
parent 203a981fed
commit 7344c761fe
13 changed files with 15745 additions and 9864 deletions

View File

@@ -94,7 +94,7 @@ export class Map extends L.Map {
super(ID, {
zoomSnap: 0,
zoomDelta: 0.25,
preferCanvas: false,
preferCanvas: true,
doubleClickZoom: false,
zoomControl: false,
boxZoom: false,
@@ -400,6 +400,7 @@ export class Map extends L.Map {
this.options.scrollWheelZoom = undefined;
this.#centerUnit = null;
}
this.#updateCursor();
}
getCenterUnit() {
@@ -714,6 +715,8 @@ export class Map extends L.Map {
#panToUnit(unit: Unit) {
var unitPosition = new L.LatLng(unit.getPosition().lat, unit.getPosition().lng);
this.setView(unitPosition, this.getZoom(), { animate: false });
this.#updateCursor();
this.#updateDestinationCursors();
}
#getMinimapBoundaries() {