Skip to content

Commit 2a1b302

Browse files
committed
chore: update error message for uninitialized manager
1 parent 5f6b7b0 commit 2a1b302

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

maplibre_gl/lib/src/controller.dart

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,8 +1167,11 @@ class MapLibreMapController extends ChangeNotifier {
11671167

11681168
final circles = [
11691169
for (var i = 0; i < options.length; i++)
1170-
Circle(getRandomString(),
1171-
CircleOptions.defaultOptions.copyWith(options[i]), data?[i])
1170+
Circle(
1171+
getRandomString(),
1172+
CircleOptions.defaultOptions.copyWith(options[i]),
1173+
data?[i],
1174+
)
11721175
];
11731176
await circleManager?.addAll(circles);
11741177
if (!isDisposed) notifyListeners();
@@ -1700,7 +1703,7 @@ class MapLibreMapController extends ChangeNotifier {
17001703
void _ensureManagerInitialized(Object? manager) {
17011704
if (manager == null) {
17021705
throw Exception(
1703-
"${manager.runtimeType} has not been initialized. Make sure that the map style has been loaded.",
1706+
"This Annotation Manager has not been initialized. Make sure that the map style has been loaded.",
17041707
);
17051708
}
17061709
}

0 commit comments

Comments
 (0)