import { useMapMouseMove } from "../../../hooks/use-map-mouse-move.js";
import { useOverlayEvents } from "../../../hooks/use-overlay-events.js";
const useConnectionLayerMouseMove = (geoJsonDataLength, layerId) => {
  const { handleMouseMove } = useOverlayEvents();
  const layerIds = Array.from(
    { length: geoJsonDataLength },
    (_, i) => `${layerId}-${i}`
  );
  useMapMouseMove(layerIds, handleMouseMove);
  return {
    layerIds
  };
};
export {
  useConnectionLayerMouseMove
};
//# sourceMappingURL=use-connection-layer-mouse-move.js.map
