changeZoomlevel method
Future<void>
changeZoomlevel(
- int zoomlevel,
- PixelProjection projection
)
override
Implementation
@override
Future<void> changeZoomlevel(int zoomlevel, PixelProjection projection) async {
// we are unable to initialize without a path
if (_path.isEmpty) {
_log.warning("PolylineMarker has an empty path, cannot draw anyhting $this");
return;
}
RenderinstructionPolyline renderinstructionZoomed = renderinstructionsZoomed.putIfAbsent(zoomlevel, () => renderinstruction.forZoomlevel(zoomlevel, 0));
WayProperties wayProperties = WayProperties(Way.simple(_path.path), projection);
renderInfo = RenderInfoWay(wayProperties, renderinstructionZoomed);
await PainterFactory().getOrCreateShapePainter(renderInfo!);
}