leaflet-polydraw
Version:
Advanced polygon drawing and editing plugin for Leaflet with drag-and-drop, smart merging, and comprehensive editing tools
22 lines • 645 B
TypeScript
import * as L from 'leaflet';
/**
* Service for managing map state and notifying listeners.
*/
export declare class MapStateService {
private map;
private mapListeners;
constructor();
onMapUpdated(callback: (map: L.Map) => void): void;
private emitMapUpdated;
/**
* Updates the current map state and notifies listeners.
* @param map The Leaflet map instance.
*/
updateMapState(map: L.Map): void;
/**
* Updates the polygons in the map state.
* @param polygons Array of polygons.
*/
updatePolygons(polygons: L.LatLngLiteral[][][]): void;
}
//# sourceMappingURL=map-state.d.ts.map