Previous topic

BOD Search Window

Next topic

TreePanel

This Page

Aggregate layerΒΆ

An aggregate layer is a layer composed of several OpenLayers.Layer. This example presents a combination of WMS and WMTS layers.

Hide code
<script type="text/javascript">
 function init() {

 var map6 = new GeoAdmin.Map("mymap6", {doZoomToMaxExtent: true});

 map6.addLayerByName("ch.bfs.gebaeude_wohnungs_register");
 map6.addLayerByName("ch.swisstopo.swissboundaries3d-kanton-flaeche.fill");

 var layertree = new GeoAdmin.LayerTree({
     map: map6,
     renderTo: "mylayertree6",
     width: 300
 });
}
</script>
<body onload="init();">
   <div id="mylayertree6" style="float: left;margin:10px !important;width:285px;height: 340px;"></div>
   <div id="mymap6" style="float: right; width:400px;height:340px;border:1px solid grey;padding: 0 0 0 0;margin:10px !important;"></div>
   <script type="text/javascript" src="https://api.geo.admin.ch/loader.js"></script>
</body>