trafficVisibility property

bool get trafficVisibility

Get traffic visibility.

Returns whether the traffic layer is currently visible on the map. By default, traffic is visible if the current map style includes a traffic layer.

Returns

  • (bool) True if traffic is visible, false otherwise.

See also:

Implementation

bool get trafficVisibility {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'MapViewPreferences',
    'getTrafficVisibility',
    dependencyId: _mapPointerId,
  );

  return resultString['result'];
}