getBounds method
Get the bounds of the item for spatial indexing.
Implementation
@override
LatLngBounds getBounds(InteractivePolyline item) {
if (item.points.isEmpty) {
return LatLngBounds(const LatLng(0, 0), const LatLng(0, 0));
}
return LatLngBounds.fromPoints(item.points);
}