Home > @magiclane/maps-sdk > ExternalInfo > requestWikiImageInfo

ExternalInfo.requestWikiImageInfo() method

Get info on one Wikipedia image.

Signature:

requestWikiImageInfo(imageIndex: number, onComplete: (error: GemError, imageInfo: string | null) => void): ProgressListener | null;

Parameters

Parameter

Type

Description

imageIndex

number

The image index

onComplete

(error: GemError, imageInfo: string | null) => void

Callback to be called when the request is completed - Called with GemError.success and the image info on success. - Called with GemError.general error and null on invalid input

Returns:

ProgressListener | null

ProgressListener for the operation progress if it could be started, null otherwise

Exceptions

An exception if it fails.