/* eslint-disable @typescript-eslint/restrict-template-expressions */ /* eslint-disable @typescript-eslint/no-unsafe-return */ /* eslint-disable @typescript-eslint/prefer-nullish-coalescing */ import { divIcon, Point } from 'leaflet' import type { MarkerIcon } from '#types/MarkerIcon' const createSvg = (shape: string, markerColor: string, borderColor: string) => { const svgMap = { circle: '', square: '', star: '', penta: '', } // eslint-disable-next-line security/detect-object-injection return svgMap[shape] } const MarkerIconFactory = ( shape: string, color1: string, color2: string, icon?: MarkerIcon, assetsURL?: string, ) => { if (icon) return divIcon({ html: `