updateMapOptions method

  1. @override
Future<void> updateMapOptions(
  1. Map<String, dynamic> optionsUpdate,
  2. {required int mapId}
)
override

Updates configuration options of the map user interface - deprecated, use updateMapConfiguration instead.

Change listeners are notified once the update has been made on the platform side.

The returned Future completes after listeners have been notified.

Implementation

@override
Future<void> updateMapOptions(
  Map<String, dynamic> optionsUpdate, {
  required int mapId,
}) {
  return channel(mapId).invokeMethod<void>(
    'map#update',
    <String, dynamic>{
      'options': optionsUpdate,
    },
  );
}