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

0.2.5 • Public • Published

Installation

npm install --save @types/leaflet-rotatedmarker

Summary

This package contains type definitions for leaflet-rotatedmarker (https://github.com/bbecquet/Leaflet.RotatedMarker).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/leaflet-rotatedmarker.

index.d.ts

import * as L from "leaflet";

declare module "leaflet" {
    interface MarkerOptions {
        rotationAngle?: number | undefined; // Rotation angle, in degrees, clockwise. (Default = 0)
        rotationOrigin?: string | undefined; // The rotation center, as a transform-origin CSS rule. (Default = 'bottom center')
    }

    interface Marker {
        /*
         * Sets the rotation angle value.
         */
        setRotationAngle(newAngle: number): this;

        /**
         * Sets the rotation origin value.
         */
        setRotationOrigin(newOrigin: string): this;
    }
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:38 GMT
  • Dependencies: @types/leaflet

Credits

These definitions were written by Robert Prib.

/@types/leaflet-rotatedmarker/

    Package Sidebar

    Install

    npm i @types/leaflet-rotatedmarker

    Weekly Downloads

    5,453

    Version

    0.2.5

    License

    MIT

    Unpacked Size

    3.94 kB

    Total Files

    5

    Last publish

    Collaborators

    • types