setMapStyleById method

void setMapStyleById(
  1. int id, {
  2. bool smoothTransition = false,
})

Set map view details by content id.

Parameters

  • IN id Content id. See ContentStoreItem.id.
  • IN smoothTransition Enables a smooth transition between old and new style.

Implementation

void setMapStyleById(final int id, {final bool smoothTransition = false}) {
  objectMethod(
    _pointerId,
    'MapViewPreferences',
    'setMapStyleById',
    args: <String, Object>{'id': id, 'smoothTransition': smoothTransition},
    dependencyId: _mapPointerId,
  );
}