Adding a layer style
How to add new styles to layers
Layers require layer styles in order to display data on the map. When you create a layer it has no styles associated with it. You need to plan which items you want to display on the map and which designs or design interfaces are required to achieve the correct overlay of data.
Adding a layer style
To add a style to a newly created layer use the following procedure:
- When you create a new layer the Styles page is displayed on completion.
- Select the more actions button from the action bar.
- Select Add style. The Create style page appears on the left hand side.
- Select step Data source, the Based on page is displayed.
This allows you to select the type of source from the following options:
- Design - this allows you to associate the style with a design or design interface.
- WFS - this allows you to associate the style with a Web Feature Service to import and display external information on the map, see Web Feature Service style for more information.
Select the Design button to add a normal style within a layer. This returns you to the Create style page.
Select step AQS settings, this displays the Select design or interface panel.
Selecting the Design or interface field displays a list of designs and interfaces, which allows you to select the design or interface for the items you want to appear on the layer style. The name of the design or interface is used by default to name the style. You can edit this later, see editing layer styles
- Select the Next button to continue to the Select type page.
You can select from one of the following type options:
- All live items - this allows you to create a query to view all the items in the Live collection for the design or interface you select.
- Match query - this allows you to create a query that allows you to view an item matched with specified attribute value for the design or interface you select.
- Range query - this allows you to create a query that allows you to view a range of items matched with specific range of attribute values for the design or interface you select.
- Custom query - this allows you to create a custom query to view items for the design or interface you select. You can use the AQS builder to customise the style and the items that are displayed within the layer.
When you have the selected the query type the Create style page is displayed.
- Select step Details, this allows you to change the default detail settings.
Name - Give your style a meaningful and unique name that can be easily identified. By default the name of the design or interface you selected is used.
Colour - This allows you to choose the colour applied to the style icon within Alloy, see Selecting Colours.
Icon - This allows you to choose an icon from the built in library within Alloy to identify the style, see Selecting Icons.
Active visualisation - This allows you to select the style visualisation that you want to use. You can select from the following visualisation types:
- Cluster - the cluster visualisation can be used for standard style types. Where a layer contains many items that are close together, for example street lights or waste bins, when the map is zoomed out, the system clusters items to avoid cluttering up the map, see Selecting items.
- Basic - the basic visualisation can be used for standard style types. Where the layer contains many items, each individual item is displayed irrespective of the map scale.
- Network - the network visualisation is used for network layer styles, with settings that are specific to networks.
Select the Next button to continue to the Select type page.
When you have completed all the required steps select Create style. The new style details are displayed in the right panel.
So, you have now created a standard style that can be used to display items based on a design, on the map when the layer is activated. You can further customise the style query to display a refined data set if required, see Customising styles.