mapStyleId property

int get mapStyleId

Get the current view style content id.

Each map style in the content store has a unique identifier. Use this to determine which style is currently applied to the map. Returns 0 if no style is set.

Returns

  • (int) The current view style content id, or 0 if no style is set.

See also:

Implementation

int get mapStyleId {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'MapViewPreferences',
    'getMapStyleId',
    dependencyId: _mapPointerId,
  );

  return resultString['result'];
}