setDrawFPS method
Enable or disable frames-per-second drawing.
Displays a real-time FPS (frames per second) counter at the specified screen position. This is useful for performance debugging and optimization. The FPS counter shows how smoothly the map is rendering.
Parameters
isEnabled: (bool) True to enable FPS drawing, false to disable.pos: (Point<int>) The screen position where the FPS counter will be drawn.
Implementation
void setDrawFPS(final bool isEnabled, final Point<int> pos) {
objectMethod(
_pointerId,
'MapViewPreferences',
'setDrawFPS',
args: <String, Object>{
'bEnable': isEnabled,
'pos': XyType<int>.fromPoint(pos),
},
dependencyId: _mapPointerId,
);
}