Installation
npm install --save @types/leaflet-rotate
Summary
This package contains type definitions for leaflet-rotate (https://github.com//Raruto/leaflet-rotate).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/leaflet-rotate.
index.d.ts
import * as L from "leaflet";
declare module "leaflet" {
interface MapOptions {
rotate?: boolean;
bearing?: number;
trackContainerMutation?: boolean;
touchRotate?: boolean | string;
shiftKeyRotate?: boolean | string;
rotateControl?: boolean;
}
interface Map {
setBearing: (theta: number) => void;
getBearing: () => number;
rotatedPointToMapPanePoint: (point: Point) => Point;
mapPanePointToRotatedPoint: (point: Point) => Point;
}
interface Point {
rotate: (theta: number) => Point;
rotateFrom: (theta: number, pivot: Point) => Point;
}
interface MarkerOptions {
rotation?: number;
rotateWithView?: boolean;
}
interface Marker {
setRotation: (rotation: number) => void;
}
}
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:38 GMT
- Dependencies: @types/leaflet
Credits
These definitions were written by Brian Jubelirer.