HSLayers.Control.BoxLayerSwitcherΒΆ

HSLayers.Control.BoxLayerSwitcher is Google-like layer switcher. Layers are organized under buttons to groups of layers. Each group can have many overlay groups.

http://dev.bnhelp.cz/wwwlibs/hslayers/branches/editace/examples/BoxLayerSwitcher.html

Example code:

1
2
3
4
5
6
            var ls = new HSLayers.Control.BoxLayerSwitcher();
            map.addControl(ls);

            //      title, top layer(s), cover layer(s), parameters
            ls.add("Base",this.map.layers[0],[],{active: true});
            ls.add("OSM",this.map.layers[1],[],{});

Previous topic

HSLayers.Control.ArgParser

Next topic

HSLayers.Control.Draw*

This Page