#

## OpenGeo Stack Workshop

# Creating a Layer Group

A layer group is a grouping of a number of layers with some associated styles. Layer groups allow clients to request a single layer which is actually composed of multiple layers. This is commonly referred to as a base map. This section covers the task of defining a layer group.

1. From the Welcome page navigate to Config ‣ WMS ‣ Contents.

   Viewing the WMS contents page

2. Scroll to the bottom of the page and click the Add New Layer-Group button.

   Adding a new layer group

3. In the resulting form:

   1. Enter “bayarea” in the Layer-group Name field.

   2. Enter “topp:bay_area_coastline,topp:bay_area_roads,topp:bay_area_transit_routes,topp:bay_area_bus_stops” in the Base Map Layers field.

   3. Leave the Base Map Styles field blank.

      Note

      Leaving the styles field blank specifies that the default styles for each layer in the group should be used.

   4. Generate the bounding box by clicking the Generate button.

      Definiting a layer group

4. Submit, Apply, and Save changes.

At this point the layer grouping for the base map has been defined. In the next section the base map will be previewed with the map preview.

### Navigation

- index
- modules |
- next |
- previous |
- OpenGeo Stack Workshop »
- Creating a Base Map »
- Creating a Layer Group