Home > @magiclane/maps-sdk > SocialOverlay > denyReport

SocialOverlay.denyReport() method

Provides negative feedback (downvote) for an inaccurate report.

Denies that a reported event is accurate or still in effect, decreasing the report's score. Reports with many downvotes are automatically removed to maintain information quality. Each user can confirm or deny a report only once. The operation executes asynchronously with result delivered via onComplete callback.

Signature:

static denyReport(item: OverlayItem, onComplete?: (error: GemError) => void): ProgressListener | null;

Parameters

Parameter

Type

Description

item

OverlayItem

The social report overlay item to deny. Must be a valid social report from map selection or alarm notification.

onComplete

(error: GemError) => void

(Optional) Callback invoked when operation completes or fails with: - GemError.success: Denial successfully recorded - GemError.invalidInput: item is not a social report overlay item or not from alarm notification - GemError.accessDenied: User has already confirmed or denied this report

Returns:

ProgressListener | null

ProgressListener if operation was successfully initiated, null otherwise