registerOnRenderMapScale method
Called by the map view when map scale needs to be rendered
The MapViewPreferences.showMapScale needs to be set to true in order for this callback to be called.
In order to customize the range of domains for the scaleWidth use the MapViewPreferences.mapScalePosition setter
Parameters
- IN scaleWidth Width of the scale bar
- IN scaleValue Value of the scale bar
- IN scaleUnits Units of the scale bar
Implementation
void registerOnRenderMapScale(final RenderMapScaleCallback? scaleCallback) {
_renderMapScaleCallback = scaleCallback;
GemKitPlatform.instance.filterEvent(
pointerId,
'renderMapScale',
scaleCallback == null,
);
}