fixes edit map reactivity issues
This commit is contained in:
@@ -10,7 +10,7 @@ import { haversineDistance } from "$lib/models/gpx/utils";
|
||||
export class FontawesomeMarker extends M.Marker {
|
||||
constructor(options: { icon: string, fontSize?: string, width?: number, backgroundColor?: string, fontColor?: string, id?: string }, markerOptions?: M.MarkerOptions) {
|
||||
const element = document.createElement('div')
|
||||
element.className = `cursor-pointer flex items-center justify-center w-${options.width ?? 7} aspect-square bg-${options.backgroundColor ?? "gray-500"} rounded-full text-${options.fontSize ?? "normal"}`
|
||||
element.className = `cursor-pointer flex items-center justify-center w-${options.width ?? 7} aspect-square ${options.backgroundColor ?? "bg-gray-500"} rounded-full text-${options.fontSize ?? "normal"}`
|
||||
element.id = options.id ?? "";
|
||||
super({ element: element, ...markerOptions });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user