setMapStyle method

Future<bool> setMapStyle(
  1. String style
)

更改地图样式

Implementation

Future<bool> setMapStyle(String style) async {
  try {
    return await _channel.invokeMethod('setMapStyle', {'style': style});
  } catch (e) {
    print('Failed to set map style: $e');
    return false;
  }
}