Dataset Styling

Maps are helpful because they allow you gain a deeper understanding of your data by allowing you to visualize it in many different ways. So you can tell different stories depending on how the data is presented. For any given data or dataset, you should explore different styling options and choose the best style for that.

In GeoNode each dataset has one style refered to as a Default Style which is determined by the nature of the data you’re mapping. When uploading a new dataset (see Datasets Uploading) a new default style will be associated to it.

Editing the Dataset Style

In order to edit a dataset style, open the Dataset Page (see Dataset Information) and click on Edit. Then click the Edit Style link in the options (see the picture below).

../../_images/edit_style_button.png

Edit Styles button

The Dataset will open in a new Map. The Styles Panel will show you all the default style for the dataset and some useful tools. By default, the style will be showm in a text editor form.

../../_images/styles_map_panel.png

The Styles Panel in the Map

You could continue to change the style with the text editor or switch to a visualized editor using the Visual editor above the text editor.

The visual editor looks like this

../../_images/visual_styles_map_panel.png

Visual Styles Panel in the Map

You can then edit the style by clicking on each attribute of the style.

Creating Style Rules

In order to create a new rule, Three options are provided.

  1. Mark rule

  2. Icon rule

  3. text rule

Click on any of the buttons below to create a type of style you want.

../../_images/add_style_buttons.png

Create new rule buttons

The rule you have chosen is now added on the top with default attributes which you can edit to your preference*.

../../_images/new_rule.png

New style

If the rule has errors, the following will be shown.

../../_images/edit_style_error.png

Rule Error

You can switch the rule ordering by dragging it to the top or bottom depending on your preference.

It would be nice to change the style in order to decrease the opacity of the filling color as well as to reduce the lines width. The embedded MapStore makes available a powerful Style Editor to accomplish that tasks. In the next paragraph we will explain how.

Each rule has a delete icon on the top right which you can use to remove the rule on the style.

Click on Save on the top to save your changes.