Multiple map panning fixes and improvements

This commit is contained in:
Pax1601
2023-05-01 21:51:46 +02:00
parent 89a71ef04e
commit a23bdd4b33
15 changed files with 357 additions and 289 deletions

View File

@@ -89,7 +89,7 @@ export class Unit extends Marker {
}
constructor(ID: number, data: UpdateData) {
super(new LatLng(0, 0), { riseOnHover: true });
super(new LatLng(0, 0), { riseOnHover: true, keyboard: false });
this.ID = ID;
@@ -121,7 +121,7 @@ export class Unit extends Marker {
var icon = new DivIcon({
html: this.getMarkerHTML(),
className: 'leaflet-unit-marker',
iconAnchor: [25, 0],
iconAnchor: [25, 25],
iconSize: [50, 50],
});
this.setIcon(icon);