frontend/farm_designer/map/layers/points/point_layer.tsx
Function PointLayer
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function PointLayer(props: PointLayerProps) {
const { visible, genericPoints, mapTransformProps, designer } = props;
const { cameraViewGridId, hoveredPoint, gridIds, soilHeightLabels } = designer;
const soilHeightPoints = genericPoints.filter(soilHeightPoint);
const getColor = getSoilHeightColor(soilHeightPoints);