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