UNPKG

leaflet-polydraw

Version:

Advanced Leaflet plugin for freehand polygon drawing, with smart merging and powerful editing tools. Compatible with both Leaflet v1.x and v2.x.

44 lines 1.25 kB
/** * Leaflet Version Detection Utility * Detects whether we're running with Leaflet v1.x or v2.x */ import { LeafletVersion } from '../enums'; export declare class LeafletVersionDetector { private static _detectedVersion; /** * Detects the Leaflet version being used * @returns The detected Leaflet version */ static getVersion(): LeafletVersion; /** * Performs the actual version detection * @returns The detected Leaflet version */ private static detectVersion; /** * Checks if we're running Leaflet v1.x * @returns true if running v1.x */ static isV1(): boolean; /** * Checks if we're running Leaflet v2.x * @returns true if running v2.x */ static isV2(): boolean; /** * Resets the cached version detection (useful for testing) */ static reset(): void; /** * Gets detailed version information for debugging * @returns Object with version details */ static getVersionInfo(): { version: LeafletVersion; leafletVersion?: string; hasFactoryMethods: boolean; hasConstructors: boolean; globalLAvailable: boolean; }; } //# sourceMappingURL=version-detector.d.ts.map