changeZoomlevel method

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

Implementation

@override
Future<void> changeZoomlevel(int zoomlevel, PixelProjection projection) async {
  assert(_path.isNotEmpty);
  //renderInfo?.shapePainter?.dispose();
  RenderinstructionArea renderinstructionZoomed = renderinstructionsZoomed.putIfAbsent(zoomlevel, () => renderinstruction.forZoomlevel(zoomlevel, 0));
  WayProperties wayProperties = WayProperties(Way.simple(_path.path), projection);
  renderInfo = RenderInfoWay(wayProperties, renderinstructionZoomed);
  await PainterFactory().getOrCreateShapePainter(renderInfo!);
}