The Style Editor allows fine grain control of the layer rendering. In addition to shapes, layers contain attribute values which we can use to control the rendering process.
In this section we will create a Styled Layer Descriptor (SLD) file with the uDig Style Editor in order to generate labels and theme by attribute values.
Create a new map using File ‣ New ‣ New Map
Select your new map in the Projects view, and right click to choose Rename.
Enter the name Natural Earth and press OK.
In the Layer menu, select Add
Choose Files from the provided list and press Next.
Select the following files from your data directory:
On windows hold down the control key to selecting multiple files.
Press Open and both layers will be added to your map and rendered with a default style.
Right click on the countries layer and select Change Style to open the Style Editor.
The Style Editor is arranged into a series of pages.
Select the Polygons page from the list on the right.
We will use this page to add labels to the countries layer.
Click the Labels tab on the Polygon page.
You can press the Apply button to see what your map will look like with labels
A common use for maps is as a visual display of attribute values. In cartographic terms this is known as creating a Thematic map, accomplished by defining a theme for a layer.
The Style Editor is used to theme data by setting up a thematic style for a layer based on attribute values.
Please switch to the Theme page and select the following:
- Attribute: Select the POP_EST attribute.
- Normalize: Select the GDP_MD_EST attribute.
Filter the available colour palettes to show a subset of those available:
These options show palettes which are a ramp of color suitable for viewing by color blind people on either an LCD or CRT monitor.
Press the OK button
The countries layer is now displayed as theme of population data normalized by gross domestic product as a quick measure of population productivity.
You can use a legend to review the colours and symbology used to illustrate your themaitic map.
From the menubar select Layer ‣ Legend.
The Legend decorator offers a quick summary of your themed data.
The map display can become very complicated depending on the level of detail being displayed.
The Mylar functionality is used to focus on the selected layer.
Press the Mylar button in the Layers view toolbar.
Select each layer and observe the effect.
The Mylar effect is used to focus on the selected layer by fading out everything else.
Map editors can be resized and expanded
You can also open two map editors and arrange them side by side by dragging the Map editor tab into position.
You have a lot of flexibility in arranging views around your Map editor.
The arrangement of the Workbench editors and views is called a Perspective.