isSafetyCameraEnabled property

bool get isSafetyCameraEnabled

Checks whether the safety camera overlay is enabled.

Requires the safety camera overlay to be available in the current map style. Also needs a GemMap to be active for proper functioning.

Returns

  • bool: true if the overlay is enabled, otherwise false.

Implementation

static bool get isSafetyCameraEnabled {
  return OverlayService.isOverlayEnabled(CommonOverlayId.safety.id);
}