addMarkers method
Future
addMarkers(
- List<
MarkerOptions> optionsList, { - bool moveToCenter = true,
- 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,
},
);
}