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

0.2.3 • Public • Published

Installation

npm install --save @types/leaflet.sync

Summary

This package contains type definitions for leaflet.sync (https://github.com/jieter/Leaflet.Sync).

Details

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

index.d.ts

import * as L from "leaflet";

declare module "leaflet" {
    interface SyncMapOptions {
        noInitialSync?: boolean;
        syncCursor?: boolean;
        syncCursorMarkerOptions?: CircleMarkerOptions;
        offsetFn?: (center: LatLngExpression, zoom: number, refMap: Map, targetMap: Map) => LatLngExpression;
    }

    interface Map {
        sync(map: Map, options?: SyncMapOptions): this;
        unsync(map: Map): this;
        isSynced(otherMap?: Map): boolean;
    }

    interface Sync {
        offsetHelper(
            ratioRef: [number, number] | number[],
            ratioTarget: [number, number] | number[],
        ): (center: LatLngExpression, zoom: number, refMap: Map, targetMap: Map) => LatLngExpression;
    }

    const Sync: Sync;
}

Additional Details

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

Credits

These definitions were written by Gabriel O. Martins.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/leaflet.sync

Weekly Downloads

50

Version

0.2.3

License

MIT

Unpacked Size

4.19 kB

Total Files

5

Last publish

Collaborators

  • types