Skip to content

Commit

Permalink
Fix data parameter for addLine and addCircle (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
qbouchat authored Sep 8, 2020
1 parent 7ddf77f commit fb573d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ class MapboxMapController extends ChangeNotifier {
final LineOptions effectiveOptions =
LineOptions.defaultOptions.copyWith(options);
final line =
await MapboxGlPlatform.getInstance(_id).addLine(effectiveOptions);
await MapboxGlPlatform.getInstance(_id).addLine(effectiveOptions, data);
_lines[line.id] = line;
notifyListeners();
return line;
Expand Down Expand Up @@ -508,7 +508,7 @@ class MapboxMapController extends ChangeNotifier {
final CircleOptions effectiveOptions =
CircleOptions.defaultOptions.copyWith(options);
final circle =
await MapboxGlPlatform.getInstance(_id).addCircle(effectiveOptions);
await MapboxGlPlatform.getInstance(_id).addCircle(effectiveOptions, data);
_circles[circle.id] = circle;
notifyListeners();
return circle;
Expand Down

0 comments on commit fb573d4

Please sign in to comment.