跳到主要内容

flywave-mapview.poitable.load

Home > @flywave/flywave-mapview > PoiTable > load

PoiTable.load() method

Start to load the PoiTable from the specified URL. Can only be called once per table.

Signature:

load(poiTableUrl: string, abortSignal?: AbortSignal): Promise<boolean>;

Parameters

Parameter

Type

Description

poiTableUrl

string

URL that points to the JSON file.

abortSignal

AbortSignal

(Optional) Signal to abort the loading of the poi table file

Returns:



Promise&lt;boolean&gt;

&#123;<!-- -->Promise<boolean>&#125; Promise is being resolved once the JSON file has been fetched and the `PoiTable` has been set up.