| param config: | Object config |
|---|---|
| return: | GeoAdmin.LayerTree |
Create a GeoAdmin layer tree. Visibility, opacity, metadata and display can be managed with this layer tree.
Sample code to create a layer tree (see also demo):
var map6 = new GeoAdmin.Map("mymap6", {doZoomToMaxExtent: true});
map6.addLayerByName("ch.swisstopo.gg25-kanton-flaeche.fill");
var layertree = new GeoAdmin.LayerTree({
map: map6,
renderTo: "mylayertree6",
width: 300
});
Configuration properties in addition to those listed for Ext.tree.TreePanel.
String The info window class to be used when user clicks on ‘i’. Defaults to ‘GeoAdmin.BodSearchWindow’
OpenLayers.Map A OpenLayers.Map instance
Boolean Tells whether to show the ‘zoomtoextent’ action. Defaults to false.