From fb573d423ab32a18cbbacaedea156e6415671795 Mon Sep 17 00:00:00 2001 From: qbouchat <48958612+qbouchat@users.noreply.github.com> Date: Tue, 8 Sep 2020 14:20:19 +0200 Subject: [PATCH] Fix data parameter for addLine and addCircle (#388) --- lib/src/controller.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/controller.dart b/lib/src/controller.dart index 83ed1f2a5..660389ecc 100644 --- a/lib/src/controller.dart +++ b/lib/src/controller.dart @@ -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; @@ -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;