Vector Layers Styling
Vector Styling in Alteia enables vector layer data to be assigned symbology based on the associated attribute values.
There are two different vector styling:
- System styles: It is the pre-defined style that will be applied to a vector layer attribute by default after analytic processing or an upload with a specific category.
- Custom styles: Alteia enables you to create your custom vector styles for numerical attributes.
To illustrate these styles, let's look at an agricultural dataset as an example.
2. System Styles
The “Plant Count” analytic provides a vector layer with different attributes, such as the number of plants and the emergence per plot. By default, each attribute has a dedicated style with 5 categories.
The system style that is applied will depend on the analytics launched.
- When clicking on the name of the layer you will open the info panel on the right side of the screen, which enables the reading of the scale and the attribute selection.
- Change between available attributes from the drop-down menu to update the layer visualization.
- Clicking on a single polygon on the map enables you to display the corresponding attribute values in the right-hand panel INFO section.
3. Custom Styles
You can create a custom style for any numerical attribute of your vector. In particular, you will be able to customize the color ramp, the number of intervals, and the value of each interval.
3.1 Create a custom style
You can create and save a custom style if:
- You have a Domain Manager role
- You have a Manager Company role
- You have a User Company role
As a Contributor to a Company you can create and display a custom style but you won't be able to save it.
3.2 Step-by-step creation
If we go back to our previous example, you can create a custom style by following these steps:
Step 1 - Open the Info Panel of the layer of interest, in this case, “Plant Count”, which contains the vectorized microplots with several attributes. Click on "CREATE A NEW STYLE".
Step 2 - Type a name for your new style.
Step 3 - Choose the attribute from the drop-down list. It shows the available attributes attached to your vector.
Step 4 - Choose your color ramp and the number of classes (intervals) you want to create.
By default, 5 classes with equally distributed values will be proposed, but you can define between 1 and 10 classes. You can modify the values of each interval but they have to be consecutive values.
You can also add a description to each class.
Step 5 - Save your new style by clicking on "SAVE".
- Once your new style is created, you will be able to visualize it. An "Other" label will be added to the Legend to categorize values outside of the classes.
- You also have the capability to change the opacity of a custom style which will save automatically.
3.3 Display Labels on vector layers
Step 1 - Open the layer panel of the layer and click on "CREATE A NEW STYLE'".
Step 2 - Select the attribute used for the labels ("Attribute for label" field) to customize the labels to display on the map view and fill in the fields, see paragraph 3.2.
Step 3 - Click on "SAVE".
Step 4 - The style is created and labels are visible.
Step 5 - Use the "Display labels" button switch to display ON or OFF labels.
3.4 Share a custom style
You can share a custom style at different levels depending on your role in your Alteia account organization:
- Domain Manager role can share a custom style at Site (project), Company, and Domain level
- Manager role can share a custom style at Site (project) and Company level
Once your custom style is created and saved, it will appear in the "Layer Style" drop-down list as a "User" style.
- To share it to another level, select your style from the "Layer Style" drop-down list and click on "SHARE STYLE TO PROJECT". Your style is now shared with a Project Style, which means it will be available for the SITE you are in.
- If you open the drop-down list "Layer Style" you will now see your newly created custom style at a Site (project) level.
- To share your style at a Company level, click on "SHARE STYLE TO COMPANY". This will enable the style to be used for data with the respective attribute for all the Sites (projects) of your Company.
- If you want to share your style at a Domain level (only for Domain Manager), click on "SHARE STYLE TO DOMAIN" and your custom style will be available for all the Companies and Sites (projects) in your Domain, when the attribute for which the style has been created is available, in this case, plant_count.
3.5 Hierarchy of the custom styles display:
Hierarchy depending on the sharing of the custom style (layer/project/company/domain):
- A custom style created for a given layer/attribute will be displayed on that layer/attribute only.
- A custom style shared at the project/site level will be applied to all layers containing the same attribute within the project/site.
- A custom style shared at the company level will be applied to all layers containing the same attribute within the company.
- A custom style shared at the domain level will be applied to all layers containing the same attribute within the domain.
If you create and apply a new custom style on a layer/attribute that already contains a custom style (either attached to the project, company, or domain level), this new custom style will be displayed on that layer every time. If you share this custom style with the project, company, or domain, it will replace the other custom styles in place for the display.
Hierarchy within the layer itself:
- The styles for a given layer appear in alphabetical order.
- The custom styles have priority over the system styles
- For a given layer, there are 3 attributes (A, B, C)
- Attribute A has a system style
- Attribute B has a custom style
- Attribute C has a custom style
- When opening the layer, the first attribute that will be displayed on the map is the attribute B
3.6 Delete a custom layer
Step 1 - Click on the trash icon near the custom layer
Step 2 - Click on "CONFIRM" to delete the custom style or "CANCEL" to abort the operation.