With new update to Version 1.0.9 there is new out-of-the-box function of the Svg Publish extension - layer support!
Now you can publish diagrams, and add optional layer management, to allow switching layers on/off on the published diagram. This allows to control diagram's layers on the web to show/hide it's parts. Check out the example: Suzuki FA50 Shuttle electrical schematic. Yep, in 1990s it was all pretty simple. You can turn on/off wires of the corresponding color by clicking the layer switch, to see what is connected with what. This is out of the box. Alternatively (this part is provided by extra tiny script) - you can turn layers on/of by clicking shapes. For example, if you click a lamp, all wires which are connected to that lamp will be turned on/off. Click the picture to go to live diagram.
The source diagram:
1981-91 Suzuki FA50 Shuttle (152.9 KiB)
To enable layers functionality, it's enough to set checkbox Enable layers when publishing: