I am having a visual glitch when adding an image as a band to the map. The glitch consists of a vertical line which is not rendered at all. The more I zoom out of the map, the more this line increases in width, When zoomed in, this line decreases in width.
The problem is specifically when I reduce a collection to the last element while filtering its bounds.
var image = imageCollection3.filterBounds(Lixin);
image = image.reduce(ee.Reducer.last());
var NDVI = image.normalizedDifference(['B8_last', 'B4_last']).rename('NDVI');
When I try to do the same process by reducing to the sum or the mean, the problem does not happen.
var image = imageCollection3.filterBounds(Lixin);
image = image.reduce(ee.Reducer.mean());
var NDVI = image.normalizedDifference(['B8_mean', 'B4_mean']).rename('NDVI');
It is also worth noting I don't get any errors in the console.
This is the link to my code: https://code.earthengine.google.com/f512a8c70b5f0d9444285cf190095f43
Is there a way to correct this?