onRenderMapScale method

  1. @override
void onRenderMapScale(
  1. int scaleWidth,
  2. int scaleValue,
  3. String scaleUnits
)

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);
}