changeZoomlevel method
Future<void>
changeZoomlevel(
- int zoomlevel,
- 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");
}