setMapStyleByPath method

void setMapStyleByPath(
  1. String path, {
  2. bool smoothTransition = false,
})

Set map view style by content path

Parameters

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

Throws

  • An exception if it fails

Implementation

void setMapStyleByPath(final String path,
    {final bool smoothTransition = false}) {
  objectMethod(
    _pointerId,
    'MapViewPreferences',
    'setMapStyleByPath',
    args: <String, Object>{
      'path': path,
      'smoothTransition': smoothTransition,
    },
  );
}