Skip to content

Commit 8b3bfa6

Browse files
make sure setAutoPanMode is async
1 parent 2412b90 commit 8b3bfa6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arcgis_map_sdk/lib/src/arcgis_location_display.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ class ArcgisLocationDisplay {
4747
return ArcgisMapPlatform.instance.stopLocationDisplayDataSource(_mapId!);
4848
}
4949

50-
void setAutoPanMode(AutoPanMode autoPanMode) {
50+
Future<void> setAutoPanMode(AutoPanMode autoPanMode) {
5151
_assertAttached();
52-
ArcgisMapPlatform.instance.setAutoPanMode(autoPanMode.name, _mapId!);
52+
return ArcgisMapPlatform.instance.setAutoPanMode(autoPanMode.name, _mapId!);
5353
}
5454

5555
Future<AutoPanMode> getAutoPanMode() {

0 commit comments

Comments
 (0)