faced with the situation when ol draws lines if the coordinates are "scattered". for example.
coords as is: and sorted coords by date: bottom image is almost correct except sharp lines up. sometimes the gsm signal may disappear and the coordinates are recorded in the memory of the transmitting device and as soon as a signal appears, the unsent coordinates are transmitted to the server.
how can i fix it? how to make openlayers not draw sharp lines?