addOnCanRemoveUnusedStyleImageListener

Set a callback that's invoked when map needs to release unused image resources.

A callback will be called only for unused images that were provided by the client via onStyleImageMissing listener interface.

By default, platform will remove unused images from the style. By adding listener, default behavior can be overridden and client can control whether to release unused resources.

Parameters

listener

The callback that's invoked when map needs to release unused image resources