addMarkers method

Future addMarkers(
  1. List<MarkerOptions> optionsList, {
  2. bool moveToCenter = true,
  3. bool clear = true,
})

Implementation

Future addMarkers(
  List<MarkerOptions> optionsList, {
  bool moveToCenter = true,
  bool clear = true,
}) {
  final _optionsListJson = jsonEncode(optionsList.map((it) => it.toJson()).toList());
  L.p('方法addMarkers dart端参数: _optionsListJson -> $_optionsListJson');
  return _mapChannel.invokeMethod(
    'marker#addMarkers',
    {
      'moveToCenter': moveToCenter,
      'markerOptionsList': _optionsListJson,
      'clear': clear,
    },
  );
}