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.