@types/leaflet-rotate
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/leaflet-rotate

Weekly Downloads

670

Version

0.1.4

License

MIT

Unpacked Size

4.34 kB

Total Files

5

Last publish

Collaborators

  • types