npm.io
0.2.6 • Published 1 year ago

@types/leaflet-rotatedmarker

Licence
MIT
Version
0.2.6
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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: Wed, 03 Sep 2025 0848 GMT
  • Dependencies: @types/leaflet

Credits

These definitions were written by Robert Prib.