Filtered Layers

When a Data Definition has one or more Filtered Layers set, this allows the user to create a temporary layer on the map that will be removed when the map is reloaded. This layer will be created using the Filtered Layer as the template and will be filtered by the data contained in the results.
For example, suppose the Parcels Data Definition contains two Filtered Layers as configured in the administrator. When the user selects one or more Parcels, they will have this dropdown available:
If enabled, a color picker is also available as the last item (as shown above). When expanded, it looks like this:
This optional color can be used to override the Filtered Layer's default color.
When the user selects one of the Filtered Layers (after optionally selecting a color), a new temporary layer is created using the selected Filtered Layer as the template, and is filtered by the results. So, for example, if the user selects red as their override color and chooses Parcels 1 as their Filtered Layer, a copy of the Parcels 1 layer will be added to the map and filtered by the selected parcel(s). It will look like this on the map (a filtered Parcel is shown alongside two Parcels from the original, un-filtered layer):
The Filtered Layer will be shown in the legend (where the number in parentheses at the end simply tracks the order the layers were created in, as the user may create multiple layers):
Note that because a Filtered Layer is using an existing layer as its template that it can contain any arbitrary styling (for example, a "Parcels 3" layer could be created that is already red).
[Last updated for version 2904 (04/2013)]