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
RenderinstructionCaption forZoomlevel(int zoomlevel, int level) {
RenderinstructionCaption renderinstruction = RenderinstructionCaption(level)
..renderinstructionScale(this, zoomlevel)
..baseSrcMixinScale(this, zoomlevel)
..textSrcMixinScale(this, zoomlevel)
..fillSrcMixinScale(this, zoomlevel)
..strokeSrcMixinScale(this, zoomlevel);
renderinstruction.symbolId = symbolId;
renderinstruction.textKey = textKey;
renderinstruction.position = position;
if (zoomlevel >= strokeMinZoomLevel) {
double scaleFactor = MapsforgeSettingsMgr().calculateScaleFactor(zoomlevel, strokeMinZoomLevel);
renderinstruction.gap = gap * scaleFactor;
}
return renderinstruction;
}