Style your layersΒΆ

After uploading your data, the Styling menu will open. While a simple style has been generated for your layer by default, you may wish to customize this style. GeoExplorer provides a tool to create and edit styles.

Warning

All style changes will apply and persist on the server immediately. We recommend you make a backup of a style before making any changes.

You can open the Styles dialog box at any time by clicking a layer in the Layer list and then clicking the Palette icon. Alternatively, right-click a layer and click Layer Styles.

../../_images/style_contextmenu.png

Accessing the Layer Styles editor

To edit a style for a given layer:

  1. In the Styles menu you will see a default Style containing a single Rule. To create a duplicate of this style for modification, click the Duplicate button.
../../_images/style_duplicatebutton.png

Duplicating the Style

  1. To avoid confusion with the original style, provide a new Title and Abstract description. Once you’ve entered this information, click Save.

    ../../_images/style_metadata.png

    Style metadata

    ../../_images/style_savebutton.png

    Click Save when done

  2. Make sure the duplicated Style is selected in the Choose style box.

    ../../_images/style_styleselect.png

    Selecting the new style

  3. Click the existing rule in the Rules box, and then click the Edit button underneath.

    ../../_images/style_editrulebutton.png

    Click this button to edit the style rule

  4. Change the style as you see fit, selecting from a range of options including size, color, opacity, filters, and much more.

    Note

    Please see the GeoExplorer Documentation for more about what can be styled here.

    ../../_images/style_ruleedit.png

    Editing the style

    ../../_images/style_colorpicker.png

    Using the color picker

  5. Click Save to persist your changes. To go back to the main Layers List, click the Layers title in the Layers Panel at the top where it says Layers >> <your layer>.

    ../../_images/style_editcomplete.png

    A new style for the layer

  6. Repeat this process for any layers that you wish to style. To edit styles for another layer, click the layer in the Layers Panel and then click the Palette icon, or right-click the layer and click Layer Styles as shown above.

Note

If you need a more customized or complex style than what is possible through GeoExplorer, you can code your own style. See the Styling section of the GeoServer documentation for more information.

Now that your layers are styled, the next step is to Edit your data.