registerOnSetMapStyle method

void registerOnSetMapStyle(
  1. SetMapStyleCallback? setMapStyleCallback
)

Registers for map style change notifications.

Fired when the map style is updated, either through the API or by native defaults.

Parameters

  • setMapStyleCallback: (SetMapStyleCallback?) Receives content store identifiers and style path metadata. Pass null to unregister.

Also see:

Implementation

void registerOnSetMapStyle(final SetMapStyleCallback? setMapStyleCallback) {
  _setMapStyle = setMapStyleCallback;

  GemKitPlatform.instance.filterEvent(
    pointerId,
    'onSetMapStyle',
    setMapStyleCallback == null,
  );
}