Table Of Contents

Previous topic

GeoAdmin.LayerNode

Next topic

GeoAdmin.MailPanel

This Page

GeoAdmin.LayerTree

Extends
xtype
ga_layertree
class GeoAdmin.LayerTree(config)
param config:Object config
return:GeoAdmin.LayerTree

Create a GeoAdmin layer tree. Visibility, opacity, metadata and display can be managed with this layer tree.

Example Use

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
});

Config Options

Configuration properties in addition to those listed for Ext.tree.TreePanel.

infoWindowClass

String The info window class to be used when user clicks on ‘i’. Defaults to ‘GeoAdmin.BodSearchWindow’

map

OpenLayers.Map A OpenLayers.Map instance

showZoomToExtentAction

Boolean Tells whether to show the ‘zoomtoextent’ action. Defaults to false.