ui.Map.onTileLoaded

Stay organized with collections Save and categorize content based on your preferences.

Registers a callback that's fired when a map tile has been loaded.

Returns an ID which can be passed to unlisten() to unregister the callback.

UsageReturns
Map.onTileLoaded(callback)String
ArgumentTypeDetails
this: ui.mapui.MapThe ui.Map instance.
callbackFunctionCalled with an array of per layer values. Each value is the fraction of tiles still pending: a value of 0 means there are no more tiles to load for the layer.