setMapStyle method

Future<void> setMapStyle(
  1. String? mapStyle, {
  2. required int mapId,
})

Sets the styling of the base map.

Set to null to clear any previous custom styling.

If problems were detected with the mapStyle, including un-parsable styling JSON, unrecognized feature type, unrecognized element type, or invalid styler keys: MapStyleException is thrown and the current style is left unchanged.

The style string can be generated using map style tool.

Implementation

Future<void> setMapStyle(
  String? mapStyle, {
  required int mapId,
}) {
  throw UnimplementedError('setMapStyle() has not been implemented.');
}