Overview – This class will give you an overview of the Styling menu and each method of styling available within in.
Learning Objectives – Get a detailed understanding of the different areas of the style menu and how they work.
How to access the Style Menu
The Style Menu can be found in the control panel, as previously mentioned in Module 3. Clicking on the Style option will open the menu in place of your legend on the right side of your screen.
Pin Style
The first style option is based around the default pin. You can change the pin color by clicking on the colored box and choosing a color. You can also change your pin icon by clicking the dropdown under the default pin. Your own custom logo can also be uploaded to your account to be used as a pin icon on your map. The transparency and size of your pins can also be changed using this menu. Clustering can be turned off completely or changed to several levels from Minimal – High. This works best if you have several points grouped close together and it displays these as a number rather than points on top of each other.
Labelling
You can also add labels to your map through the style menu. Any column in your data can be used as a label and will be displayed above or below the pins on your map according to your selected position setting. There are several label settings that we will go through in more detail. To turn labels on, click the OFF option beside the Labelling setting in the style menu.
The first of the Labelling options is Label Settings. There are three style options for labels, which can be changed using the Labelling drop down. Optimized Labels will display as many of your labels as possible, without having them overlap with other labels. Optimized labels will also place the label in the best position possible for your map, ensuring that your data and labels are not obscured. If a label is positioned away from your data point, a leader line will be drawn from the label to the corresponding point. You can change the color of this line using the Line Color option at the bottom of the style menu. Checking the Inherit from pin option will set the color to be the same as the color of your pins.
Non – Overlapping Labels will only display labels that don’t overlap. If a label does overlap, only one of the overlapping labels will be displayed.
The All Labels option will display every label on the map regardless of whether they overlap with other labels or not. This is more likely to happen at further zoom scales, or in areas where there are a lot of data points.
When Labelling is turned on, Optimized Labels is the default labelling setting.
Label Columns
Any column in your dataset can be used as a label. You can choose the column that you want to be displayed by selecting it from the drop-down menu. You can also add a Prefix/Suffix (e.g. £,$,€,% ) to your label by choosing one from the corresponding drop downs or you can type in your own prefix/suffix into the box.
Additional labels can be added by clicking the Add Label Column option. Using this option, you can add up to 2 additional columns or attributes for labelling. You can also choose the way you want your additional labels to be displayed, by choosing an option from the Separation drop-down. You can include 3 separate attributes as part of your label.
This example creates a complex label using 3 attributes from the dataset, separating each on a new line and adds a heading (Sector) and a $ sign as prefixes.
Label Styling
Here you can change the font style of your labels, make them bold or italic, and change the size and color. The color can be set to match the pin color by checking the Inherit from pin option. The position of your labels can be changed to place the labels above, below, or centrally.
You can choose whether your label has a box or if the text is free standing. If the box option is turned on, you will then have the option to change the fill and border colors of the box, as well as change the thickness of the border line.
Color by Value
Using the Color by Value option allows for easy visualization of your data using color coding. This can be useful for visualizing different areas, or different classifications within your data. To turn on Color by Value, go to the panel in the style menu and click on the Color by Value off button.
You can use color by value on both text and numeric fields. The above example is a text field and is referencing the status of potential customers. In the dataset these are split into Lead, Opportunity, and Prospect. The Color by Value styling method will assign each type of customer a color. You can select which color to assign to each type by clicking on the colored box beside the type name. You can also set the first and last color ranges and click on the Autofill button to complete the colors for the intermediary ranges. Clicking on the Reset button will reset the ranges and colors back to the default. You can change the column you wish to color by, using the drop down above the colors.
Numeric Fields
Numeric fields work similarly to text fields, but there are more options to customize. Typing a value into the text boxes allows you to set your value ranges.
You can also add or remove a range by clicking on the + or - buttons. If you have value ranges that you wish to save or reuse in the future, you can use the Store Ranges option. This will save both your value ranges and your color range choices. You can then apply a stored range by clicking the Apply Ranges option. This will then open the Apply Ranges window, where you can either apply just your saved colors or both your color and value ranges.
Size by Value
The Size by Value option can be used to easily distinguish your pins based on a value range. You can set this range using the Min and Max value text boxes and set the pin size using the Diameter text boxes. An important note is that Size by Value can only be used on a numerical column.
The color of the pin can be changed in the Default Pin section, and color ranges set in color by value will still apply if the setting is turned on. The column being used to style by can also be changed in the legend when the style menu is closed, by clicking on the drop down above the symbol value indicator.
Symbol by Value
Symbol by Value allows you to visualize your data using different symbols. Any column in your data can be used for this styling method and can be chosen from the drop down above the symbols. Each symbol can also be changed using the drop down on the symbols.
Custom symbols can also be added to your eSpatial account. If you click the dropdown beside the Pin Style icon, you will see the Add your own icon prompt. Clicking on this will open an email that will be sent to help@espatial.com. You can attach any images that you want uploaded to your account, as long as they comply with the criteria outlined in the email.
The color of the pin can be changed in the Default Pin section, and like Color by Value, ranges can be set, stored and applied to this styling method.
If using a text column to style by Color, Size, or Symbol by Value, only columns with a maximum of 50 unique values can be used. Using a column with over 50 unique values will result in an error message being shown.
Heat Map
The hotspot heatmap can be used as a visual heatmap based on point density or numeric values that are in your dataset. The Hotpsot heatmap defaults to darker colors for low density areas, and brighter colors for high density areas, but these colors can be changed using the color dropdowns. The Low, Medium, and high values can also be set using the text boxes beside each option.
The transparency of the heatmap can be set by typing a value in the Transparency box. The size of the radius of the hot spots can be changed, with the default being 25 pixels. The type of radius can also be changed to either pixels, miles, or kilometers.
The final two styling options are Overlay pins, and Color Snapping. Checking the overlay pins box will place your pins back on the map and overlay them with your heat map. Checking the Color Snapping box will remove the blurring between the heatmap ranges and will present them as a bold color like in the image below.
Average density is the density of the data if it was equally distributed on the map. This average density is set as 100%. At the low/10% mark, the data is at 1/10th the density of the average and at high/200% the data is at least twice the average density. The average density is calculated for an individual dataset i.e. it is different from dataset to dataset.
The radius option lets you alter the area of influence of a single point i.e. how much area a point represents/impacts.
Practical Exercise 6 – Styling
Overview - This exercise allows you to test adding styling options to your data.
- Change the pin icon, size and clustering of your data.
- Apply a color by value setting on a numerical column
- Apply a symbol by value setting on a text type column
- Apply the heatmap to identify high density areas in your dataset.