OpenGeo

OpenGeo Stack Workshop

Previous topic

Creating a Base Map

Next topic

Previewing a Base Map

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.

    ../_images/layergroup_create1.jpg

    Viewing the WMS contents page

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

    ../_images/layergroup_create2.jpg

    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.

      ../_images/layergroup_create3.jpg

      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.