true if the related theme is added to the layertree, false otherwise.
Add the missing layers of an in-use theme, from an original theme description. The added layers are deactivated.
a Theme object, or model, as initially defined.
Removes all layers from the layer tree except themes that are pinned.
Calculates the initial order (=position) for a new theme in the tree. Themes are added at the top of the tree, but underneath any pinned themes. Defaults to 0. This prevents themes of visibly "jumping" around in the tree after being added due to reordering.
any layer or layer group (or theme) to find the related theme.
The original theme configuration.
ProtectedisCount the layer in both the given theme and the matching original theme.
the theme to check.
true if the count is the same. False otherwise.
Add the related theme if it's not already (even partially) in the layertree. If it's already in it, don't add it, warn the user, and highlight it.