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 performing hit tests (popup), showing data, tools that are participating in editing data, highlighting etc.

Referenced by: layerDefinition

Properties

Property Details
activeFilterId Active display filter id.
filterMode Display filter mode.
Valid values:
  • manual
  • scale
filters[] Display filters that contain filters describing which features should be rendered on display.

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.