onSetMapStyle method

  1. @override
void onSetMapStyle(
  1. int id,
  2. String stylePath,
  3. bool viaApi
)

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: true if 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);
}