mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
missed the minus
This commit is contained in:
@@ -145,10 +145,10 @@ class Line implements Draw
|
||||
}
|
||||
|
||||
if ($endpoint_correction) {
|
||||
if ($lastPoint && $end->getLng() < 1 && $lastPoint->getLng() > 1) {
|
||||
if ($lastPoint && $end->getLng() < -1 && $lastPoint->getLng() > 1) {
|
||||
$end->setLng($end->getLng() + 360);
|
||||
}
|
||||
if ($lastPoint && $end->getLng() > 1 && $lastPoint->getLng() < 1) {
|
||||
if ($lastPoint && $end->getLng() > 1 && $lastPoint->getLng() < -1) {
|
||||
$end->setLng($end->getLng() - 360);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user