enableCursor property

set enableCursor (bool isEnabled)

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:

Implementation

set enableCursor(final bool isEnabled) {
  objectMethod(
    _pointerId,
    'MapViewPreferences',
    'enableCursor',
    args: isEnabled,
    dependencyId: _mapPointerId,
  );
}