zoomToSpan method
移动镜头到当前的视角
Implementation
Future zoomToSpan(
List<LatLng> bound, {
int paddingT = 80,
int paddingL = 80,
int paddingB = 80,
int paddingR = 80,
}) {
final boundJson = jsonEncode(bound.map((it) => it.toJson()).toList());
L.p('zoomToSpan dart端参数: bound -> $boundJson');
paddingT = getPxFromDesignPx(paddingT);
paddingL = getPxFromDesignPx(paddingL);
paddingB = getPxFromDesignPx(paddingB);
paddingR = getPxFromDesignPx(paddingR);
return _mapChannel.invokeMethod(
'map#zoomToSpan',
{
'bound': boundJson,
'paddingT': paddingT,
'paddingL': paddingL,
'paddingB': paddingB,
'paddingR': paddingR,
},
);
}