onSetMapStyle method
Called when the map style changes.
Fired when the map style is updated, either through the API or by native defaults.
Parameters
id: Content store identifier for the applied style.stylePath: Local or logical path of the style resource.viaApi:trueif the style originated from an explicit API call.
Implementation
@override
void onSetMapStyle(final int id, final String stylePath, final bool viaApi) {
_setMapStyle?.call(id, stylePath, viaApi);
}