Remove shadow and bounce contraction for cleaner look

This commit is contained in:
Timothy Armes
2023-07-19 15:58:56 +02:00
parent e8dd1c935a
commit 4fe1318893
3 changed files with 65 additions and 15 deletions
+29
View File
@@ -0,0 +1,29 @@
import { Marker } from "leaflet";
declare class BouncingOptions {
bounceHeight: number;
contractHeight: number;
bounceSpeed: number;
contractSpeed: number;
shadowAngle: number;
elastic: number;
exclusive: number;
constructor(options: Partial<BouncingOptions>);
}
// Declare a class type that adds in methods etc. defined by leaflet.smooth_marker_bouncing
// to keep Typescript happy
export declare class BouncingMarker extends Marker {
isBouncing(): boolean;
bounce(): void;
stopBouncing(): void;
getBouncingMarkers(): Marker[];
setBouncingOptions(options: BouncingOptions | Partial<BouncingOptions>): void;
stopAllBouncingMarkers(): void;
_icon: HTMLElement;
_bouncingMotion?: {
bouncingAnimationPlaying: boolean;
};
}