Adds example for the layer.toggle() method