changeZoomlevel method

  1. @override
Future<void> changeZoomlevel(
  1. int zoomlevel,
  2. PixelProjection projection
)
override

Implementation

@override
Future<void> changeZoomlevel(int zoomlevel, PixelProjection projection) async {
  //renderInfo?.shapePainter?.dispose();
  RenderinstructionPolylineText renderinstructionZoomed = renderinstructionsZoomed.putIfAbsent(zoomlevel, () => renderinstruction.forZoomlevel(zoomlevel, 0));
  WayProperties wayProperties = WayProperties(Way.simple(_path), projection);
  renderInfo = RenderInfoWay(wayProperties, renderinstructionZoomed, caption: caption);
  await PainterFactory().getOrCreateShapePainter(renderInfo!);
  assert(renderInfo!.shapePainter != null, "PainterFactory should create a painter");
}