import { useEffect } from "react";
import { useMap } from "react-map-gl/maplibre";
const useMapMouseMove = (layerIds, callback) => {
  const { current: map } = useMap();
  useEffect(() => {
    layerIds.forEach((layerId) => {
      map?.on("mousemove", layerId, callback);
    });
    return () => {
      layerIds.forEach((layerId) => {
        map?.off("mousemove", layerId, callback);
      });
    };
  });
};
export {
  useMapMouseMove
};
//# sourceMappingURL=use-map-mouse-move.js.map
