areMapScalesDrawnByUser property
Get whether map scales are drawn by the user or SDK.
Returns
True if scales are drawn by the user, false if drawn by the SDK.
See also:
- GemMapController.registerOnRenderMapScale - Callback for custom rendering.
Implementation
bool get areMapScalesDrawnByUser {
final OperationResult resultString = staticMethod(
'MapView',
'getAreMapScalesDrawnByUser',
);
return resultString['result'];
}
Configure whether map scales are drawn by the user or the SDK.
Only applicable when showMapScale is true. When false (the default), the SDK automatically renders the scale bar. When true, you must provide custom rendering instructions via GemMapController.registerOnRenderMapScale. This setting applies globally to all map views in the application.
Parameters
value: (bool) True for custom user-drawn scales, false for SDK rendering.
See also:
- areMapScalesDrawnByUser getter - Check current mode.
- showMapScale - Show or hide the scale.
- GemMapController.registerOnRenderMapScale - Callback for custom rendering.
Implementation
set areMapScalesDrawnByUser(final bool value) {
staticMethod('MapView', 'setAreMapScalesDrawnByUser', args: value);
}