Fix: add getPin function and improve code formatting in draw-markers (#1349)

* feat: add getPin function and improve code formatting in draw-markers

* style: improve code formatting in draw-markers.ts for better readability
This commit is contained in:
Azgaar 2026-03-07 18:23:42 +01:00 committed by GitHub
parent 6e26f49423
commit afe89eff43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -18,6 +18,7 @@ interface Marker {
declare global {
var drawMarkers: () => void;
var drawMarker: (marker: Marker, rescale?: number) => string;
var getPin: (shape?: string, fill?: string, stroke?: string) => string;
}
type PinShapeFunction = (fill: string, stroke: string) => string;
@ -103,3 +104,4 @@ const markersRenderer = (): void => {
window.drawMarkers = markersRenderer;
window.drawMarker = markerRenderer;
window.getPin = getPin;