diff --git a/examples/tree/tree-hierarchy.html b/examples/tree/tree-hierarchy.html
new file mode 100644
index 000000000..47a30667e
--- /dev/null
+++ b/examples/tree/tree-hierarchy.html
@@ -0,0 +1,52 @@
+
+
+
+
+
GeoExt.tree Components
+
+
This example shows how to work with a hierarchy layer tree.
+
+
Each layer can have an optional group
attribute. The group
attribute can have '/'
to create the hierarchy, like:
+
group: 'Additional layers/World/Administrative'
+
+
+
If no group attribute is assigned, the layer goes by to either the baseLayers
or otherLayers
group. The default labels for these two groups are:
+
+
baseLayersText: "Base layers",
+otherLayersText: "Other layers"
+
+
+ These labels can be changed.
+
+
+
+
+
+
+
+
The js is not minified so it is readable. See
+ tree-hierarchy.js.
+
+
+
+
diff --git a/examples/tree/tree-hierarchy.js b/examples/tree/tree-hierarchy.js
new file mode 100644
index 000000000..7f5dc5c86
--- /dev/null
+++ b/examples/tree/tree-hierarchy.js
@@ -0,0 +1,140 @@
+/*
+ * Copyright (c) 2008-2015 The Open Source Geospatial Foundation
+ *
+ * Published under the BSD license.
+ * See https://github.com/geoext/geoext2/blob/master/license.txt for the full
+ * text of the license.
+ */
+
+Ext.require([
+ 'Ext.container.Viewport',
+ 'Ext.layout.container.Border',
+ 'GeoExt.tree.Panel',
+ 'Ext.tree.plugin.TreeViewDragDrop',
+ 'GeoExt.panel.Map',
+ 'GeoExt.tree.OverlayLayerContainer',
+ 'GeoExt.tree.BaseLayerContainer',
+ 'GeoExt.data.LayerTreeModel',
+ 'GeoExt.tree.View',
+ 'GeoExt.tree.Column',
+ 'GeoExt.tree.LayerTreeBuilder'
+]);
+
+var mapPanel, tree;
+
+Ext.application({
+ name: 'Tree',
+ launch: function() {
+ // create a map panel with some layers that we will show in our layer tree
+ // below.
+ mapPanel = Ext.create('GeoExt.panel.Map', {
+ border: true,
+ region: "center",
+ // we do not want all overlays, to try the OverlayLayerContainer
+ map: {allOverlays: false},
+ center: [14, 37.5],
+ zoom: 7,
+ layers: [
+ new OpenLayers.Layer.WMS("Global Imagery",
+ "http://maps.opengeo.org/geowebcache/service/wms", {
+ layers: "bluemarble",
+ format: "image/png8"
+ }, {
+ buffer: 0,
+ visibility: false,
+ group: 'World base maps/Imagery'
+ }
+ ),
+ new OpenLayers.Layer.WMS("OpenStreetMap WMS",
+ "http://ows.terrestris.de/osm/service?",
+ {layers: 'OSM-WMS'},
+ {
+ attribution: '© terrestris GmbH & Co. KG