onRenderMapScale method
Called when the map scale should be rendered.
Parameters
scaleWidth: Scale bar width in pixels.scaleValue: Numeric value represented by the scale bar.scaleUnits: Units for the scale (for example,m).
Implementation
@override
void onRenderMapScale(
final int scaleWidth,
final int scaleValue,
final String scaleUnits,
) {
_renderMapScaleCallback?.call(scaleWidth, scaleValue, scaleUnits);
}