Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
mootw committed Dec 3, 2024
1 parent 36d83a4 commit ac4f22c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/layer/polygon_layer/label.dart
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ LatLng _computeCentroid(List<LatLng> points) {
LatLng _computePolylabel(List<LatLng> points) {
final labelPosition = polylabel(
[
List<Offset>.generate(points.length,
(i) => Offset(points[i].longitude, points[i].latitude)),
List<Point<double>>.generate(points.length,
(i) => Point<double>(points[i].longitude, points[i].latitude)),
],
// "precision" is a bit of a misnomer. It's a threshold for when to stop
// dividing-and-conquering the polygon in the hopes of finding a better
Expand Down
1 change: 1 addition & 0 deletions lib/src/layer/polygon_layer/polygon_layer.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'dart:math';
import 'dart:ui';

import 'package:collection/collection.dart';
Expand Down

0 comments on commit ac4f22c

Please sign in to comment.