isSocialReportsEnabledWithCategory static method
- int categoryId
Checks whether the social reports overlay is enabled for a specific category.
Requires the safety camera overlay to be available in the current map style. Also needs a GemMap to be active for proper functioning.
Parameters
categoryId: The overlay category identifier.
Returns
bool:trueif the category is enabled, otherwisefalse.
Implementation
static bool isSocialReportsEnabledWithCategory(int categoryId) {
return OverlayService.isOverlayEnabled(
CommonOverlayId.socialReports.id,
categUid: categoryId,
);
}