setMapStyleById method
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.
Throws
- An exception if it fails
Implementation
void setMapStyleById(final int id, {final bool smoothTransition = false}) {
objectMethod(
_pointerId,
'MapViewPreferences',
'setMapStyleById',
args: <String, Object>{
'id': id,
'smoothTransition': smoothTransition,
},
);
}