Effect

Effect provides various filter functions to achieve different visual effects similar to how image filters (photo apps) work.

  • Effect Functions An array of effect functions that applies to all scales.
  • Scale Dependent Effect An array to define a scale dependent effect definition. Effects are interpolated between each scale stops.

Referenced by: Bing layer (bingLayer), CSV Layer (CSV), Feature Layer (ArcGISFeatureLayer), GeoRSS Layer (GeoRSS), Group Layer (GroupLayer), Image Service Layer (ArcGISImageServiceLayer), Image Service Vector Layer (ArcGISImageServiceVectorLayer), KML Layer (KML), Map Service Layer (ArcGISMapServiceLayer), OGC Feature Layer, OpenStreetMap Layer (OpenStreetMap), Stream Layer (ArcGISStreamLayer), Subtype Group Layer (SubtypeGroupLayer), Tiled Image Service Layer (ArcGISTiledImageServiceLayer), Tiled Map Service Layer (ArcGISTiledMapServiceLayer), Vector Tile Layer (VectorTileLayer), Web Feature Service Layer (WFS), Web Tiled Layer (WebTiledLayer), WMS Layer (WMS)

Effect Example

[
  {
    "type": "brightness",
    "amount": 4
  }
]

Scale Dependent Effect Example

[
  {
    "scale": 36978595,
    "value": [
      {
        "type": "drop-shadow",
        "xoffset": 3,
        "yoffset": 3,
        "blurRadius": 4,
        "color": [
          0,
          0,
          0,
          255
        ]
      },
      {
        "type": "brightness",
        "amount": 4
      }
    ]
  },
  {
    "scale": 18489297,
    "value": [
      {
        "type": "drop-shadow",
        "xoffset": 2,
        "yoffset": 2,
        "blurRadius": 3,
        "color": [
          0,
          0,
          0,
          255
        ]
      },
      {
        "type": "brightness",
        "amount": 2
      }
    ]
  },
  {
    "scale": 4622324,
    "value": [
      {
        "type": "drop-shadow",
        "xoffset": 1,
        "yoffset": 1,
        "blurRadius": 2,
        "color": [
          0,
          0,
          0,
          255
        ]
      }
    ]
  }
]

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