If I set a setting on a layer using:
Settings.setLayerSettingForKey(layer, 'my-key', 0.1)
How do remove the setting completely so the layer is in it's original state?
Settings.layerSettingForKey(layer, 'my-key') returns
undefined when no setting exists, it seems logical to do this:
Settings.setLayerSettingForKey(layer, 'my-key', undefined)
...and it does result in the
layerSettingForKey method returning
undefined, but something feels wrong about this approach.
Is there a more correct way, or am I overthinking this?