forZoomlevel method
Creates a copy of itself with the data needed for the given zoomlevel. Note that this should only be called from Rendertheme and NOT from RenderthemeZoomlevel
Implementation
@override
RenderinstructionPolylineText forZoomlevel(int zoomlevel, int level) {
RenderinstructionPolylineText renderinstruction = RenderinstructionPolylineText(level)
..renderinstructionScale(this, zoomlevel)
..baseSrcMixinScale(this, zoomlevel)
..textSrcMixinScale(this, zoomlevel)
..strokeSrcMixinScale(this, zoomlevel)
..fillSrcMixinScale(this, zoomlevel)
..repeatSrcMixinScale(this, zoomlevel);
renderinstruction.textKey = textKey;
// we need the zoomlevel for calculating the position of the individual texts
renderinstruction.zoomlevel = zoomlevel;
return renderinstruction;
}