enableCursor property
Enable or disable cursor mode.
When the cursor is enabled, map selection can be activated by calling GemMapController.setCursorScreenPosition. The cursor allows programmatic selection of map features. Note that both this property and enableCursorRender must be true for the cursor crosshair to be visible on screen. The cursor is automatically disabled by GemMapController.startFollowingPosition.
Parameters
isEnabled: (bool) True to enable the cursor, false to disable it.
See also:
- enableCursorRender - Control cursor visibility.
- cursorEnabled - Check cursor state.
- GemMapController.setCursorScreenPosition - Position the cursor.
Implementation
set enableCursor(final bool isEnabled) {
objectMethod(
_pointerId,
'MapViewPreferences',
'enableCursor',
args: isEnabled,
dependencyId: _mapPointerId,
);
}