Display Filter Info

Display filters provide information about which features should be rendered on the display. Unlike definition expression which filters the data for tables/charts, display filters are meant for decluttering the display only. These filters should be applied only while drawing features. These filters should not be applied when showing data in a table, tools that are participating in editing data, highlighting etc. Display filters are applied before the feature reduction like binning or clustering.

Referenced by: layerDefinition

Properties

Property Details
activeFilterId Active display filter id. This property is required when the mode (filterMode) is manual.
filterMode Display filter mode.
Valid values:
  • manual
  • scale
filters[] Display filters that contain filters describing which features should be rendered on display. For the scale mode, zero or more filters to applied are selected based on the map scale. Filters cannot have overlapping scale ranges. When two or more filters are found for the map scale, the first filter in the list is applied.

Display Filter Info - manual Example

{
  "activeFilterId": "displayfilter1",
  "filterMode": "manual",
  "filters": [
    {
      "id": "displayfilter1",
      "title": "Hide contained features",
      "where": "ASSOCIATIONSTATUS NOT IN (36, 4, 5, 6, 12, 13, 44)"
    }
  ]
}

Display Filter Info - scale Example

{
  "filterMode": "scale",
  "filters": [
    {
      "id": "1",
      "title": "Hide contained features",
      "where": "ASSOCIATIONSTATUS NOT IN (36, 4, 5, 6, 12, 13, 44)",
      "minScale": 0,
      "maxScale": 18055.954822
    },
    {
      "id": "2",
      "title": "Show only contained features",
      "where": "ASSOCIATIONSTATUS IN (36, 4, 5, 6, 12, 13, 44)",
      "minScale": 18055.954822,
      "maxScale": 0
    }
  ]
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.