/* // hooks/useUlafMarkersLayer.js import { useEffect, useState } from "react"; import L from "leaflet"; import { addContextMenuToMarker } from "../../utils/addContextMenuToMarker"; //import { fetchDeviceNameById } from "../services/api/fetchDeviceNameById"; const useUlafMarkersLayer = (map, oms, GisSystemStatic, priorityConfig) => { const [ulafMarkers, setUlafMarkers] = useState([]); useEffect(() => { if (!map || !GisSystemStatic) return; const markers = []; GisSystemStatic.forEach((station) => { if (station.System === 0) { // Adjust the condition to match ULAF system identification const marker = L.marker([station.Lat, station.Lon], { icon: L.icon({ iconUrl: "/img/icons/ulaf.png", iconSize: [25, 41], iconAnchor: [12, 41], popupAnchor: [1, -34], }), id: station.id, name: station.name, description: station.description, }); marker.bindPopup(`