setIncludeMarkers method

Future<bool> setIncludeMarkers(
  1. List<Map<String, double>> coordinates,
  2. bool animated
)

设置缩放到显示所有点

Implementation

Future<bool> setIncludeMarkers(List<Map<String, double>> coordinates, bool animated) async {
  try {
    return await _channel.invokeMethod('setIncludeMarkers', {
      'coordinates': coordinates,
      'animated': animated,
    });
  } catch (e) {
    print('Failed to set include markers: $e');
    return false;
  }
}