This example shows how to use the gmf.Layertree directive. This layertree needs a source object (that can change) that describes layers like the c2cgeoportal themes service. The wmsUrl is used by internals WMS layers but you can use WMS externals layers and WMTS layers too.

New Theme
New Group
New Layer
Remove a tree