diff --git a/frontend/src/components/Markers.tsx b/frontend/src/components/Markers.tsx index e117fad..bb890f0 100644 --- a/frontend/src/components/Markers.tsx +++ b/frontend/src/components/Markers.tsx @@ -64,18 +64,32 @@ function Markers({ conditions }: { conditions: WaypointRecord[] }) { if (condition.drawn) { return ( <> + handleMarkerClick(waypoint.name) }} /> handleMarkerClick(waypoint.name) }} /> handleMarkerClick(waypoint.name) }} /> ); } - return handleMarkerClick(waypoint.name) }} />; + return ( + <> + handleMarkerClick(waypoint.name) }} />; + handleMarkerClick(waypoint.name) }} />{' '} + + ); })} ); } +function MarkerNameWidget(name: string) { + return new DivIcon({ + className: 'Marker', + iconAnchor: [-10, 20], + html: renderToStaticMarkup({name}), + }); +} + function MarkerConditionTable(condition: WaypointRecord, zoom: number) { return new DivIcon({ className: 'custom-icon',