Skip to content

Commit

Permalink
Merge pull request fleaflet#686 from fieldinrain/use_inclusive_in_inc…
Browse files Browse the repository at this point in the history
…lusiveLng

use _inclusive() in inclusiveLng()
  • Loading branch information
kengu authored Mar 17, 2021
2 parents 6a21a6e + 683210b commit 6aab20b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/src/geo/crs/crs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -371,10 +371,7 @@ abstract class Projection {

@protected
double inclusiveLng(double value) {
if (value.compareTo(-180) < 0) return -180;
if (value.compareTo(180) > 0) return 180;

return value;
return _inclusive(-180.0, 180.0, value);
}
}

Expand Down

0 comments on commit 6aab20b

Please sign in to comment.