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.
8 lines • 500 B
TypeScript
/**
* Applies SVG markup to a button element and normalizes the SVG so it renders consistently.
* - Adds a missing viewBox based on the original width/height so large coordinate systems scale down.
* - Inlines style blocks to avoid leaking class-based styles between icons.
* - Forces a consistent 24px size and disables pointer events on the SVG and its children.
*/
export declare function applySvgIcon(button: HTMLElement, svgMarkup: string): void;
//# sourceMappingURL=svg-icon.util.d.ts.map