OptionalonCallback invoked immediately before a style change begins.
void or a Promise that resolves when preparation is complete
OptionalonCallback invoked after a new style has been fully loaded.
void or a Promise that resolves when reinitialization is complete
Handler interface for responding to map style changes.
Remarks
This interface defines callbacks that are invoked when the map style changes via TomTomMap.setStyle. Use this to perform cleanup or reinitialization of custom map features when styles are switched.
Lifecycle:
onStyleAboutToChange- Called before the new style is appliedonStyleChanged- Called after the new style has been fully loadedCommon Use Cases:
Example
See