estimateTileRegion

Estimates the storage and transfer size of a tile region. This can be used for estimating existing or new tile regions. For new tile regions, both geometry and tileset descriptors need to be provided to the given load options. If a tile region with the given id already exists, its geometry and tileset descriptors are reused unless a different value is provided in the region load options. Estimating a tile region does not mutate exising tile regions on the tile store. Note: The user-provided callbacks will be executed on a TileStore-controlled worker thread; it is the responsibility of the user to dispatch to a user-controlled thread.

Return

Returns a Cancelable object to cancel the estimate request

Parameters

id

The tile region identifier.

loadOptions

The tile region load options.

estimateOptions

The options for the estimate operation.

onProgress

Invoked multiple times to report progess of the estimate operation.

onFinished

Invoked only once upon success, failure, or cancelation of the estimate operation.


An overloaded version that uses default options.

Return

Returns a Cancelable object to cancel the estimate request

Parameters

id

The tile region identifier.

options

The tile region load options.

onProgress

Invoked multiple times to report progess of the estimate operation.

onFinished

Invoked only once upon success, failure, or cancelation of the estimate operation.