laptop and a wrench

Bug

Setting layerDefinitions for IdentifyParameters results in error, “TypeError: identifyParams.layerDefinitions is null.”

Last Published: August 25, 2014 ArcGIS API for JavaScript
Bug ID Number NIM072828
SubmittedSeptember 16, 2011
Last ModifiedDecember 1, 2020
Applies toArcGIS API for JavaScript
Version found2.4
Program languageJavaScript
Operating SystemWindows
Operating System VersionXP
StatusIn Product Plan

Workaround

identifyParameters.layerDefinitions needs to be created manually as it is an optional parameter. This code does not produce the error reported: // create an array to hold layer definitions // each array item corresponds to a single layer def identifyParams.layerDefinitions = []; // populate the array identifyParams.layerDefinitions[2] = "PSTLADDRESS= '4686 Brightmore Rd'";The documentation will be updated to be more explicit.

Steps to Reproduce

Bug ID: NIM072828

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