laptop and a wrench

Bug

The DefinitionExpression is not honored on the sublayers of a layer if the sublayer definition is not passed in the constructor of MapImageLayer.

Last Published: January 7, 2021 ArcGIS API for JavaScript
Bug ID Number BUG-000114774
SubmittedJune 19, 2018
Last ModifiedJune 5, 2024
Applies toArcGIS API for JavaScript
Version found4.7
Operating SystemN/A
Operating System VersionN/A
StatusNon-Reproducible

Additional Information

This issue is not reproducible. Contact Support Services if the issue is occurring in the latest version of ArcGIS API for JavaScript.

Workaround

Add sublayer definition in constructors of MapImageLayer for the DefinitionExpression to be honored.

Here is the updated JS Bin with a workaround: https://jsbin.com/yozemiqama/edit?html,output

Steps to Reproduce

Bug ID: BUG-000114774

Software:

  • ArcGIS API for JavaScript

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options