LayerStyles Module

Layer styles enable end users to re-symbolize layers on the map. The LayerStyles Module implements the layer styles visualizationProvider, which is hosted by the Visualization Module.

There are two ways to give end users control of layer symbolization:

Symbolization can only be modified for feature layers or layers that belong to a dynamic layers-enabled map service. Symbolization must be enabled in Essentials Manager. Feature layers have symbology enabled by default. For more information, see Symbolization.

Symbology Types

The widget configuration settings control two types of symbology:

Default Layer Styles

The LayerStyles Module uses SymbologySettings and AttributeSymbologySettings widgets to provide default layer style definitions. Widgets are configured in the idgets section of the viewer configuration files.

Commands

You can activate the re-symbolization user interface with the ShowVisualizationView command. You can remove re-symbolization with the RemoveVisualization command.

User Experience

Users can configure layer styles in the viewer from the Visualization Options panel. They can enable either a preconfigured layer style defined in Essentials Manager or define a custom layer style.

For example, assume the default layer style for a Tax Parcel layer is defined as shown in the following image, where the tax parcels are within the rectangular areas on the map:

Default layer style visualization

Use a Preconfigured Layer Style

To use a preconfigured layer style:

  1. On the Layers panel, locate the layer to which you want to apply a preconfigured layer style.

  2. Click the Action button next to the layer name to display a list of layer options.

  3. Click Turn on/off layer visualizations to open the Visualization Options panel.

  4. Select a preconfigured layer style from the drop-down list.

  5. Click Apply, and then click Done or close the Visualization Options panel.

Create a Custom Layer Style

To create a custom layer style:

  1. On the Layers panel, locate the layer for which you want to create a custom style.

  2. Click the Action button to the right of the layer name to display a list of layer options.

  3. Click Turn on/off layer visualizations to open the Visualization Options panel.

  4. Select Custom Layer Style in the drop-down list.

  5. Select Simple under Choose Symbology Type.

  6. Choose your fill color for the tax parcels in the Color selector, your border color for the tax parcels in the Outline Color selector, then click Apply.

    As shown in the following image, the fill color is a solid color.

    Visualization Options panel with fill color and outline color defined for the layer

  7. To change the transparency/opacity setting to permit underlying layer features to show through, click the down arrow under Color and set the slider for the "a" (alpha) setting of the 'rgba' values to something less than 100% and click Apply.

    In the following image, the slider is moved from 100% to 0%.

    Setting the slider for the fill color to 0%

    And the resulting Tax Parcels layer appears with no fill color and a dark blue outline color:

    Fill color set to 0% and the outline color set to dark blue

Similar symbolization changes can be used to customize the layer style when selecting the Attribute symbology type.

Configuration Properties

Module

No configuration properties

Views

View Models

Widgets

© 2019 Latitude Geographics Group Ltd. All Rights Reserved.

Documentation Version 4.11