Styling of layers
A layer must be styled before it can be seen on the map. Styling is done through the layer's class(es), which may be assigned properties such as color, symbol, thickness, size, label etc. A layer must minimum have one class. Ramani Cloud has a Class Wizard, which can help with the creation of classes.
Start of class wizard
- In the layer tree to the left, select a layer by clicking on the title so the background turns gray.
- Then click on "Class Wizard".
Class Wizard
Class wizard always shows the latest used wizard and its options.
- "Single" is the most simple styling (being set as the default for all new uploads). Will create a class with a chosen color.
- "Unique values" create classes for distinct values from the selected field.
- "Intervals" creates classes for intervals from the selected field. Only numeric fields can be used. Number of classes (# of colors) and start and end color must be set. You can choose between two types of intervals: Equal and Quantiles.
- "Clustering" creates clusters of points. A distance in pixels is set to cluster threshold.
- All wizards have a "Required" section in which properties that are specific to the selected wizard must be set.
- In the "Symbol" and "Label" sections, the created classes are assigned additional properties. These two sections are the same for all wizards.
"Symbol" properties
- Symbol: Which symbol should be used? Leave blank if a solid surface or line is desired on polygon and line layers.
- Angle: Rotate the symbols against the clock a number of degrees. This is combo box*.
- Size. The symbol's height in pixels. This is combo box*.
- Outline color: color to be used for the edge of surfaces and certain marker symbols. Has no effect on lines.
- Line width: Thickness of lines in pixels.
- Opacity: Object transparency on the scale of 1-100, where 100 is solid.
* Either write a value or select a attribute field with the value to be used.
"Label" properties
- Text: Add labels. Which text to be displayed? This is a combo box*. You can also combine multiple columns and static text: eg "No. [id] \n [text]" where \n indicates a line break.
- Color: The color of the labels.
- Size: Size of labels in pixels. This is combo box*.
- Position: The position of the label relative to the anchor point.
- Angle: Rotate the labels against the clock a number of degrees. This is combo box*.
- Background: Select a background color for labels. This will place a square behind the labels, so they are easier to read.
- Font. Select the font to be used for labels.
- Font weight. Choose what type of font: normal, bold, italic and so on.
* Either write a value or select a attribute field with the value to be used.
Changing signature texts and colors
Created signature texts and colors can be changed by double-clicking on them to the right.
Tutorial setup / modification of classes
After using "Class wizard" or if you want to build classes from scratch, it can be done from the right side panel.
- Open the panel for the by clicking on the selected layer.
The Classes tab
- The top grid lists all the classes of the layer. There must be a minimum of one class or layer will not be visible on the map. If a class is selected its properties get shown in the dialogue below.
- A class properties are divided into five tabs: Base, Symbol1, Symbol2, Label1 and Label2.
The Base tab
In the Base tab, the basic properties of the class are set. The two most important are:
- Name: If the class is given a name, it appears in the legend under the name.
- Expression: Each object in the layer is evaluated against Expression. If the result is true, its assigned the object class. If the layer only has one class, Expression is not necessary. Without Expression the class will be assigned to all the objects in the layer. Read more about expressions.
- Min scale: Minimum scale at which this class is drawn. Scale is given as the denominator of the actual scale fraction, for example for a map at a scale of 1:24,000 use 24000.
- Max scale: Maximum scale at which this CLASS is drawn. Scale is given as the denominator of the actual scale fraction, for example for a map at a scale of 1:24,000 use 24000.
- Sort id: Specifies the order in which classes appear on the legend. Lower value appears at the top. Note that Sort ID does not affect the order of which the objects are drawn in the map.
The Symbol1 and Symbol2 tab
You can add two independent symbols to a class. Symbol1 is placed at the bottom and Symbol2 on top. This can create a more complex symbology. This can create a more complex symbology. Typically, however, Symbol1 will suffice.
- Symbol Size and Symbol Angle's combo boxes. This means that both can be written a value (integer) or select a column from which the value should be. This can be used to rotate the arrow symbols for an attribute on individual objects.
The Label1 and Label2 tab
Two independent labels can be assigned to a class. Typically, however, Label1 will suffice.
- On: Set to true to display label on the class.
- Text: Text to label features with? This is a combo box where you either can write a text or select a reference to feature attributes (the most typical). You can also combine multiple columns and static text: eg "No. [id] \ n [text]" where \ n indicates a line break.
- Force: Forces labels for a particular class on, regardless of collisions.
- Min scale: Minimum scale at which the labels are drawn. Scale is given as the denominator of the actual scale fraction, for example for a map at a scale of 1:24,000 use 24000.
- Max scale: Maximum scale at which the labels are drawn. Scale is given as the denominator of the actual scale fraction, for example for a map at a scale of 1:24,000 use 24000.
- Position: Position of the label relative to the labeling point. “Auto†will calculate a label position that will not interfere with other labels. If all positions cause a conflict, then the label is not drawn (Unless the label’s Force a parameter is set to “trueâ€)
- Size: Size of labels in pixels. This is combo box. This means that both can be written a value (integer) or select a column from which the value to be taken.