removeStylePack

Removes a style package. Removes a style package from the existing packages list. The actual resources eviction from the Tile Store might be deferred (see the Tile Store disk quota API). All pending loading operations for the style package with the given id will fail with `Canceled` error.

Parameters

styleURI

The URI of the style package's associated style


An overloaded version with a callback for feedback. On successful style package removal, the given callback is invoked with the removed style package. Otherwise, the given callback is invoked with an error.

Parameters

styleURI

The URI of the style package's associated style

callback

A callback to be invoked when a style package was removed.