Skip to content

Commit

Permalink
Adjusted default PolylineLayer.cullingMargin value
Browse files Browse the repository at this point in the history
Minor improvements to Polyline example
  • Loading branch information
JaffaKetchup committed Jan 12, 2024
1 parent f56828f commit 1915959
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion example/lib/pages/polyline.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class _PolylinePageState extends State<PolylinePage> {
),
const Polyline(
points: [
LatLng(55.5, -0.09),
LatLng(51.74904, -10.32324),
LatLng(54.3498, -6.2603),
LatLng(52.8566, 2.3522),
],
Expand Down
4 changes: 2 additions & 2 deletions lib/src/layer/polyline_layer/polyline_layer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class PolylineLayer<R extends Object> extends StatefulWidget {
/// [Polyline.borderStrokeWidth] is large. See online documentation for more
/// information.
///
/// Defaults to 0: cull aggressively. Set to `null` to disable culling.
/// Defaults to 10. Set to `null` to disable culling.
final double? cullingMargin;

/// Distance between two mergeable polyline points, in decimal degrees scaled
Expand Down Expand Up @@ -61,7 +61,7 @@ class PolylineLayer<R extends Object> extends StatefulWidget {
const PolylineLayer({
super.key,
required this.polylines,
this.cullingMargin = 0,
this.cullingMargin = 10,
this.simplificationTolerance = 1,
this.hitNotifier,
this.minimumHitbox = 10,
Expand Down

0 comments on commit 1915959

Please sign in to comment.