fn transform_polygon_candidates( index: &LayerIndex, position: Position2, ) -> impl Iterator<Item = &GeomWithData<Rectangle<[f64; 2]>, usize>>