prepareWays method

  1. @override
Future<List<Wayholder>> prepareWays(
  1. IWayholderCollection wayholderCollection
)
override

Prepares a list of ways by filtering and simplifying them.

Implementation

@override
Future<List<Wayholder>> prepareWays(IWayholderCollection wayholderCollection) async {
  await wayholderCollection.freeRessources();
  List<Wayholder> result = await _isolateInstance.compute(wayholderCollection);
  return result;
  // return await Isolate.run(() {
  //   SubfileFiller subfileFiller = SubfileFiller(subfileZoomlevelRange, maxDeviation, boundingBox);
  //   return subfileFiller.prepareWays(wayholders);
  // });
}