mapStyleId property
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:
- ContentStoreItem.id - Content store item identifiers.
- setMapStyleById - Set map style by ID.
- mapStylePath - Get the current style path.
Implementation
int get mapStyleId {
final OperationResult resultString = objectMethod(
_pointerId,
'MapViewPreferences',
'getMapStyleId',
dependencyId: _mapPointerId,
);
return resultString['result'];
}